You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: Unable to merge GraphQL type "MyType": undefined is not iterable (cannot read property Symbol(Symbol.iterator))
at mergeType (/.../app/node_modules/@graphql-toolkit/schema-merging/index.cjs.js:675:19)
at /.../app/node_modules/@graphql-toolkit/schema-merging/index.cjs.js:717:30
at Array.reduce (<anonymous>)
at mergeGraphQLNodes (/.../app/node_modules/@graphql-toolkit/schema-merging/index.cjs.js:706:18)
at mergeGraphQLTypes (/.../app/node_modules/@graphql-toolkit/schema-merging/index.cjs.js:856:25)
at Object.mergeTypeDefs (/.../app/node_modules/@graphql-toolkit/schema-merging/index.cjs.js:755:22)
at mergeTypes (/.../app/node_modules/merge-graphql-schemas/dist/index.cjs.js:24:26)
...
I was trying to introduce type MyType {} in schema1.graphql but that exact type already existed in schema2.graphql.
This error message should be more informative. RIP my last hour.
The text was updated successfully, but these errors were encountered:
Since I have the solution, I just wanted to post it here so that someone else could search and find it. I was trying to search for this error and not finding anything.
Ultimately, I'd hope the newer lib has a better error message but I'm not able to migrate my app at this time.
Since I have the solution, I just wanted to post it here so that someone else could search and find it. I was trying to search for this error and not finding anything.
You have just saved me an hour :) thanks for the explanation!
Using
[email protected]
, I was trying to call something like:I got an error like:
I was trying to introduce
type MyType {}
inschema1.graphql
but that exact type already existed inschema2.graphql
.This error message should be more informative. RIP my last hour.
The text was updated successfully, but these errors were encountered: