Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
@vladar

wrapSchema no longer takes transforms as the second object, instead just taking a single subschemaConfig object with transforms set there.

This was a documented breaking change that I missed on my first pass.

https://github.com/ardatan/graphql-tools/releases/tag/graphql-tools%407.0.0
  • Loading branch information
yaacovCR committed Nov 15, 2020
1 parent 1f7a082 commit cf23dea
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions packages/gatsby-source-graphql/src/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,11 @@ exports.sourceNodes = async (
defaultTransforms,
options,
})
: wrapSchema(
{
schema: introspectionSchema,
executor: linkToExecutor(link),
},
defaultTransforms
)
: wrapSchema({
schema: introspectionSchema,
executor: linkToExecutor(link),
transforms: defaultTransforms,
})

addThirdPartySchema({ schema })

Expand Down

0 comments on commit cf23dea

Please sign in to comment.