@graphql-tools/merge
10.0.9 · 10 Nov 2026MIT26.8M / weekRepositoryHomepagenpmAtom feed
6.2.17 is the newest release of 6.x.
In short
4 changed
Release note
Patch Changes
Introduces a suite of stitched schema validations that enforce the integrity of merged schemas. This includes validations for:
Strict and safe null consistency (the later of which allows safe transitions in nullability).
Named type consistency with the option to whitelist proxiable scalar mappings.
Argument and input field name consistency.
Enum value consistency when used as an input value.
Validations may be adjusted by setting
validationLeveltooff|warn|errorglobally or scoped for specific types and fields. In this initial v7 release, all validations are introduced at thewarnthreshold for backwards compatibility. Most of these validations will become automatic errors in v8. To enable validation errors now, setvalidationLevel: 'error'. Full configuration options look like this:const gatewaySchema = stitchSchemas({ subschemas: [...], typeMergingOptions: { validationSettings: { validationLevel: 'error', strictNullComparison: false, // << gateway "String" may proxy subschema "String!" proxiableScalars: { ID: ['String'], // << gateway "ID" may proxy subschema "String" } }, validationScopes: { // scope to specific element paths 'User.id': { validationLevel: 'warn', strictNullComparison: true, }, } }, });
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.