Skip to content

inPhoenix/graphql-tools-testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Graphql-tools example

License JavaScript Style Guide code style: prettier

Issue: mergeSchemas in graphql-tools v10 overwrites schemas instead of combining them.

Description

The mergeSchemas function in the graphql-tools package has a problem when used with version 10. Instead of combining schemas as expected, it ends up overwriting them. To ensure compatibility with both versions of graphql-tools, I'm using version 15 of graphql. This allows for a seamless switch between the mergeSchemas function of both graphql-tools versions without any major complications. It's worth mentioning that ApolloServer v4 recommends using version 16 of graphql.

const mergedSchema = mergeSchemas({
    /* executableSchema1 will be overwritten by executableSchema2
    This will happen using @graphql-tools v10 but not with the v4
    * */
    schemas: [executableSchema1, executableSchema2],
})

About

Testing graphql-tools

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published