Migration from Merge GraphQL Schemas
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 new GraphQL Tools's @graphql-tools/merge
package and you need to update your project.
#
Merging Type DefinitionsInstead 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 same.
should become
So you can replace mergeTypes
with mergeTypeDefs
and fileLoader
with loadFilesSync
.