We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mergeSchemas
when merge multiple schemas using mergeSchemas, it throw error
Error: Can't find type Root.
const { mergeSchemas } = require('graphql-tools') const { getSchema } = require('graphql-sequelize-crud') const dbschema1 = getSchema(sequelize1) const dbschema2 = getSchema(sequelize2) module.exports = mergeSchemas({ schemas: [dbschema1, dbschema2] })
The text was updated successfully, but these errors were encountered:
Could you provide a small repository reproducing this?
Sorry, something went wrong.
i've same issue, graphql-tools from apollo server needs that schema must be defined with typeDefs for Schema Stiching:
https://www.apollographql.com/docs/graphql-tools/schema-stitching.html
when merge multiple schemas using mergeSchemas, it throw error Error: Can't find type Root. const { mergeSchemas } = require('graphql-tools') const { getSchema } = require('graphql-sequelize-crud') const dbschema1 = getSchema(sequelize1) const dbschema2 = getSchema(sequelize2) module.exports = mergeSchemas({ schemas: [dbschema1, dbschema2] })
@panjizhi i'm using a workaround, you've just to add this in your code:
const linkTypeDefs = ` type Root { _: Boolean } `; module.exports = mergeSchemas({ schemas: [dbschema1, dbschema2, linkTypeDefs] })
Let me know
panjizhi
No branches or pull requests
when merge multiple schemas using
mergeSchemas
, it throw errorThe text was updated successfully, but these errors were encountered: