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