diff --git a/packages/parrot-graphql/src/index.js b/packages/parrot-graphql/src/index.js index 702aeaf4..1b2ac865 100644 --- a/packages/parrot-graphql/src/index.js +++ b/packages/parrot-graphql/src/index.js @@ -14,8 +14,9 @@ const { mockServer } = require('@graphql-tools/mock'); -module.exports = function graphql(path, schema, mocks) { - const server = mockServer(schema, mocks); +// eslint-disable-next-line max-params +module.exports = function graphql(path, schema, mocks, preserveResolvers = true) { + const server = mockServer(schema, mocks, preserveResolvers); return { request: ({ method }, match) => match({ path }) && (method === 'GET' || method === 'POST'), response: {