Skip to content

Commit cf23dea

Browse files
committed
fix
@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
1 parent 1f7a082 commit cf23dea

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

packages/gatsby-source-graphql/src/gatsby-node.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,11 @@ exports.sourceNodes = async (
114114
defaultTransforms,
115115
options,
116116
})
117-
: wrapSchema(
118-
{
119-
schema: introspectionSchema,
120-
executor: linkToExecutor(link),
121-
},
122-
defaultTransforms
123-
)
117+
: wrapSchema({
118+
schema: introspectionSchema,
119+
executor: linkToExecutor(link),
120+
transforms: defaultTransforms,
121+
})
124122

125123
addThirdPartySchema({ schema })
126124

0 commit comments

Comments
 (0)