Issue: mergeSchemas in graphql-tools v10 overwrites schemas instead of combining them.
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],
})