Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 428 Bytes

README.md

File metadata and controls

14 lines (12 loc) · 428 Bytes

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'
  })
})))';