msw-graphql-schema
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Mock Service Worker: GraphQL Schema

Mock remote GraphQL schemas using Mock Service Worker and Apollo Server.

Example:

import {setupServer} from 'msw/node';
import {schema} from 'msw-graphql-schema';
const server = setupServer(...(await schema('http://my.graphql.schema')({
  Foo: () => ({
    bar: 'baz'
  })
})))';

Readme

Keywords

none

Package Sidebar

Install

npm i msw-graphql-schema

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

13.3 MB

Total Files

26

Last publish

Collaborators

  • amazeelabs