@graphql-tools/wrap
11.2.6 · 12 Nov 2026MIT15.3M / weekRepositorynpmAtom feed
9.4.2 is the newest release of 9.x.
In short
1 breaking1 fixed3 internal
- Breaking
Release note
The section about @graphql-tools/wrap of a note shared by several packages.
Major Changes
- Breaking
#4566
d8dc67aa
Thanks @ardatan! - ## Breaking changesSchema generation optimization by removing
transfomedSchemaparameterPreviously we were applying the transforms multiple times. We needed to introduced some breaking
changes to improve the initial wrapped/stitched schema generation performance;Transform.transformSchemano longer acceptstransformedSchemawhich can easily be created
withapplySchemaTransforms(schema, subschemaConfig)instead.Proxying resolver factory function that is passed as
createProxyingResolvertoSubschemaConfigno longer takestransformedSchemawhich can easily be created withapplySchemaTransforms(schema, subschemaConfig)instead.
stitchSchemasdoesn't take nested arrays of subschemasstitchSchemasno longer accepts an array of arrays of subschema configuration objects. Instead,
it accepts an array of subschema configuration objects or schema objects directly.stitchSchemasno longer prunes the schema withpruningOptionsYou can use
pruneSchemafrom@graphql-tools/utilsto prune the schema instead.stitchSchemasno longer respect "@computed" directive if stitchingDirectivesTransformer isn't
appliedAlso
@graphql-tools/stitchno longer exportscomputedDirectiveTransformeranddefaultSubschemaConfigTransforms. Instead, use@graphql-tools/stitching-directivespackage for@computeddirective.
Learn more about setting it upcomputedFieldshas been removed from the merged type configurationMergeTypeConfig.computedFieldssetting has been removed in favor of new computed field
configuration written as:merge: { MyType: { fields: { myComputedField: { selectionSet: '{ weight }', computed: true, } } } }A field-level
selectionSetspecifies field dependencies while thecomputedsetting structures
the field in a way that assures it is always selected with this data provided. TheselectionSet
is intentionally generic to support possible future uses. This new pattern organizes all
field-level configuration (includingcanonical) into a single structure.
Patch Changes
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.