Skip to content

Commit

Permalink
feat(mockServer): set preserveResolvers default to true
Browse files Browse the repository at this point in the history
  • Loading branch information
cchen9299 authored Aug 30, 2024
1 parent 8e7a354 commit 7cd7d3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/parrot-graphql/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

const { mockServer } = require('@graphql-tools/mock');

module.exports = function graphql(path, schema, mocks) {
const server = mockServer(schema, mocks);
module.exports = function graphql(path, schema, mocks, path, schema, mocks, preserveResolvers = true) {
const server = mockServer(schema, mocks, preserveResolvers);
return {
request: ({ method }, match) => match({ path }) && (method === 'GET' || method === 'POST'),
response: {
Expand Down

0 comments on commit 7cd7d3d

Please sign in to comment.