【文件属性】:
文件名称:graphql:一个用于使用Mirage JS处理GraphQL请求的库
文件大小:146KB
文件格式:ZIP
更新时间:2021-02-05 15:12:42
testing graphql prototype server pretender
Mirage JS GraphQL
将与一起。
总览
Mirage使您可以通过编写路由处理程序来模拟API响应。 路由处理程序是一种返回数据以满足请求的函数。 Mirage GraphQL提供了根据您的GraphQL和Mirage模式创建GraphQL路由处理程序的功能。
import { createServer } from "miragejs"
import { createGraphQLHandler } from "@miragejs/graphql"
import graphQLSchema from "app/gql/schema.gql"
export function m
【文件预览】:
graphql-main
----.gitignore(51B)
----package.json(2KB)
----jest.config.js(612B)
----build()
--------imports-suffix.js(809B)
--------index.js(2KB)
----LICENSE(1KB)
----tsconfig.json(195B)
----.github()
--------workflows()
----__tests__()
--------integration()
--------unit()
--------gql()
----.eslintrc.js(1011B)
----README.md(18KB)
----lib()
--------resolvers()
--------orm()
--------handler.js(3KB)
--------index.js(173B)
--------__mocks__()
--------utils.js(2KB)
--------relay-pagination.js(4KB)
----babel.config.js(618B)
----.npmignore(104B)
----yarn.lock(239KB)