Migration from Merge GraphQL Schemas
Migration from Merge GraphQL Schemas — GraphQL Tools documentation.
Merge GraphQL Schemas was using GraphQL Toolkit’s @graphql-toolkit/schema-merging package under
the hood, but we decided to deprecate it in favor of the new GraphQL Tools @graphql-tools/merge
package and you need to update your project.
Merging Type Definitions
Instead of mergeTypes, you need to use mergeTypeDefs from @graphql-tools/merge package. The
API is almost same except schemaDefinition option.
We were using the following implementation to proxy mergeTypes to mergeTypeDefs of GraphQL
Toolkit.
So if you want to have exact behavior, you can use the options above. Other than that, the API and behavior are almost the same.
should become:
So you can replace mergeTypes with mergeTypeDefs and fileLoader with loadFilesSync.