@graphql-tools/batch-delegate@8.3.2
Patch Changes
-
#4624
e3167edcThanks @n1ru4l! - Fix CommonJS TypeScript resolution withmoduleResolutionnode16ornodenext -
Updated dependencies [
e3167edc,d8dc67aa]:- @graphql-tools/delegate@9.0.0
- @graphql-tools/utils@8.9.1
@graphql-tools/batch-execute@8.5.2
Patch Changes
-
#4624
e3167edcThanks @n1ru4l! - Fix CommonJS TypeScript resolution withmoduleResolutionnode16ornodenext -
Updated dependencies [
e3167edc]:- @graphql-tools/utils@8.9.1
@graphql-tools/delegate@9.0.0
Major Changes
-
#4566
d8dc67aaThanks @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. TheselectionSetis intentionally generic to support possible future uses. This new pattern organizes all field-level configuration (includingcanonical) into a single structure.
Patch Changes
-
#4624
e3167edcThanks @n1ru4l! - Fix CommonJS TypeScript resolution withmoduleResolutionnode16ornodenext -
Updated dependencies [
8cc8721f,e3167edc]:- @graphql-tools/schema@9.0.0
- @graphql-tools/batch-execute@8.5.2
- @graphql-tools/utils@8.9.1
@graphql-tools/graphql-tag-pluck@7.3.2
Patch Changes
-
#4624
e3167edcThanks @n1ru4l! - Fix CommonJS TypeScript resolution withmoduleResolutionnode16ornodenext -
Updated dependencies [
e3167edc]:- @graphql-tools/utils@8.9.1
graphql-tools@8.3.2
Patch Changes
-
#4624
e3167edcThanks @n1ru4l! - Fix CommonJS TypeScript resolution withmoduleResolutionnode16ornodenext -
Updated dependencies [
8cc8721f,e3167edc]:- @graphql-tools/schema@9.0.0
@graphql-tools/import@6.7.2
Patch Changes
-
#4624
e3167edcThanks @n1ru4l! - Fix CommonJS TypeScript resolution withmoduleResolutionnode16ornodenext -
Updated dependencies [
e3167edc]:- @graphql-tools/utils@8.9.1
@graphql-tools/jest-transform@1.2.1
Patch Changes
-
#4624
e3167edcThanks @n1ru4l! - Fix CommonJS TypeScript resolution withmoduleResolutionnode16ornodenext -
Updated dependencies [
e3167edc]:- @graphql-tools/webpack-loader@6.7.1
@graphql-tools/links@8.3.2
Patch Changes
-
#4624
e3167edcThanks @n1ru4l! - Fix CommonJS TypeScript resolution withmoduleResolutionnode16ornodenext -
Updated dependencies [
e3167edc,d8dc67aa]:- @graphql-tools/delegate@9.0.0
- @graphql-tools/utils@8.9.1
@graphql-tools/load@7.7.2
Patch Changes
-
#4624
e3167edcThanks @n1ru4l! - Fix CommonJS TypeScript resolution withmoduleResolutionnode16ornodenext -
Updated dependencies [
8cc8721f,e3167edc]:- @graphql-tools/schema@9.0.0
- @graphql-tools/utils@8.9.1
@graphql-tools/load-files@6.6.1
Patch Changes
- #4624
e3167edcThanks @n1ru4l! - Fix CommonJS TypeScript resolution withmoduleResolutionnode16ornodenext
@graphql-tools/apollo-engine-loader@7.3.7
Patch Changes
-
#4624
e3167edcThanks @n1ru4l! - Fix CommonJS TypeScript resolution withmoduleResolutionnode16ornodenext -
Updated dependencies [
e3167edc]:- @graphql-tools/utils@8.9.1
@graphql-tools/code-file-loader@7.3.2
Patch Changes
-
#4624
e3167edcThanks @n1ru4l! - Fix CommonJS TypeScript resolution withmoduleResolutionnode16ornodenext -
Updated dependencies [
e3167edc]:- @graphql-tools/graphql-tag-pluck@7.3.2
- @graphql-tools/utils@8.9.1
@graphql-tools/git-loader@7.2.2
Patch Changes
-
#4624
e3167edcThanks @n1ru4l! - Fix CommonJS TypeScript resolution withmoduleResolutionnode16ornodenext -
Updated dependencies [
e3167edc]:- @graphql-tools/graphql-tag-pluck@7.3.2
- @graphql-tools/utils@8.9.1
@graphql-tools/github-loader@7.3.7
Patch Changes
-
#4624
e3167edcThanks @n1ru4l! - Fix CommonJS TypeScript resolution withmoduleResolutionnode16ornodenext -
Updated dependencies [
e3167edc]:- @graphql-tools/graphql-tag-pluck@7.3.2
- @graphql-tools/utils@8.9.1
@graphql-tools/graphql-file-loader@7.5.1
Patch Changes
-
#4624
e3167edcThanks @n1ru4l! - Fix CommonJS TypeScript resolution withmoduleResolutionnode16ornodenext -
Updated dependencies [
e3167edc]:- @graphql-tools/import@6.7.2
- @graphql-tools/utils@8.9.1
@graphql-tools/json-file-loader@7.4.2
Patch Changes
-
#4624
e3167edcThanks @n1ru4l! - Fix CommonJS TypeScript resolution withmoduleResolutionnode16ornodenext -
Updated dependencies [
e3167edc]:- @graphql-tools/utils@8.9.1
@graphql-tools/module-loader@7.2.2
Patch Changes
-
#4624
e3167edcThanks @n1ru4l! - Fix CommonJS TypeScript resolution withmoduleResolutionnode16ornodenext -
Updated dependencies [
e3167edc]:- @graphql-tools/utils@8.9.1
@graphql-tools/prisma-loader@7.2.9
Patch Changes
-
#4624
e3167edcThanks @n1ru4l! - Fix CommonJS TypeScript resolution withmoduleResolutionnode16ornodenext -
Updated dependencies [
e3167edc]:- @graphql-tools/url-loader@7.13.4
- @graphql-tools/utils@8.9.1
@graphql-tools/url-loader@7.13.4
Patch Changes
-
#4624
e3167edcThanks @n1ru4l! - Fix CommonJS TypeScript resolution withmoduleResolutionnode16ornodenext -
Updated dependencies [
e3167edc,d8dc67aa]:- @graphql-tools/delegate@9.0.0
- @graphql-tools/utils@8.9.1
- @graphql-tools/wrap@9.0.0
@graphql-tools/merge@8.3.2
Patch Changes
-
#4624
e3167edcThanks @n1ru4l! - Fix CommonJS TypeScript resolution withmoduleResolutionnode16ornodenext -
Updated dependencies [
e3167edc]:- @graphql-tools/utils@8.9.1
@graphql-tools/mock@8.7.2
Patch Changes
-
#4624
e3167edcThanks @n1ru4l! - Fix CommonJS TypeScript resolution withmoduleResolutionnode16ornodenext -
Updated dependencies [
8cc8721f,e3167edc]:- @graphql-tools/schema@9.0.0
- @graphql-tools/utils@8.9.1
@graphql-tools/node-require@6.4.2
Patch Changes
-
#4624
e3167edcThanks @n1ru4l! - Fix CommonJS TypeScript resolution withmoduleResolutionnode16ornodenext -
Updated dependencies [
e3167edc]:- @graphql-tools/load@7.7.2
- @graphql-tools/graphql-file-loader@7.5.1
- @graphql-tools/utils@8.9.1
@graphql-tools/optimize@1.3.1
Patch Changes
- #4624
e3167edcThanks @n1ru4l! - Fix CommonJS TypeScript resolution withmoduleResolutionnode16ornodenext
@graphql-tools/relay-operation-optimizer@6.5.2
Patch Changes
-
#4624
e3167edcThanks @n1ru4l! - Fix CommonJS TypeScript resolution withmoduleResolutionnode16ornodenext -
Updated dependencies [
e3167edc]:- @graphql-tools/utils@8.9.1
@graphql-tools/resolvers-composition@6.5.2
Patch Changes
-
#4624
e3167edcThanks @n1ru4l! - Fix CommonJS TypeScript resolution withmoduleResolutionnode16ornodenext -
Updated dependencies [
e3167edc]:- @graphql-tools/utils@8.9.1
@graphql-tools/schema@9.0.0
Major Changes
-
#4463
8cc8721fThanks @ardatan! - Thanks @mattkrick and @borisno2!Breaking changes
addResolversToSchema;If you are using the legacy parameters like below, you should update them to the new usage. Other than that, there is no functional change;
// From addResolversToSchema(schema, resolvers, resolverValidationOptions); // To addResolversToSchema({ schema, resolvers, resolverValidationOptions, });
mergeSchemas;The provided
resolveroverrides the resolvers in theschemawith the same name;The
helloresolver in theschemawould be overridden by thehelloresolver in theresolvers. Before it was opposite which is not expected.const schema = makeExecutableSchema({ typeDefs: ` type Query { hello: String } `, resolvers: { Query: { hello: () => 'Hello world!', }, }, }); mergeSchemas({ schemas: [schema], resolvers: { Query: { hello: () => 'New hello world', }, }, });
makeExecutableSchemano longer takesparseOptionsand you can pass those options directly;makeExecutableSchema({ typeDefs: ``, parseOptions: { assumeValid: true, }, }); // After makeExecutableSchema({ typeDefs: ``, assumeValid: true, });
makeExecutableSchemano longer does pruning and it doesn't takepruningOptionsanymore.
You can usepruneSchemafrom@graphql-tools/utilsif you need.extractExtensionsFromSchemamoved from@graphql-tools/mergeto@graphql-tools/schema.
AndtravelSchemaPossibleExtensionshas been dropped in favor ofmapSchema.
Patch Changes
-
#4624
e3167edcThanks @n1ru4l! - Fix CommonJS TypeScript resolution withmoduleResolutionnode16ornodenext -
Updated dependencies [
e3167edc]:- @graphql-tools/merge@8.3.2
- @graphql-tools/utils@8.9.1
@graphql-tools/stitch@8.7.2
Patch Changes
-
#4624
e3167edcThanks @n1ru4l! - Fix CommonJS TypeScript resolution withmoduleResolutionnode16ornodenext -
Updated dependencies [
8cc8721f,e3167edc,d8dc67aa]:- @graphql-tools/schema@9.0.0
- @graphql-tools/batch-delegate@8.3.2
- @graphql-tools/delegate@9.0.0
- @graphql-tools/merge@8.3.2
- @graphql-tools/utils@8.9.1
- @graphql-tools/wrap@9.0.0
@graphql-tools/stitching-directives@2.3.2
Patch Changes
-
#4624
e3167edcThanks @n1ru4l! - Fix CommonJS TypeScript resolution withmoduleResolutionnode16ornodenext -
Updated dependencies [
e3167edc,d8dc67aa]:- @graphql-tools/delegate@9.0.0
- @graphql-tools/utils@8.9.1
@graphql-tools/utils@8.9.1
Patch Changes
- #4624
e3167edcThanks @n1ru4l! - Fix CommonJS TypeScript resolution withmoduleResolutionnode16ornodenext
@graphql-tools/webpack-loader@6.7.1
Patch Changes
-
#4624
e3167edcThanks @n1ru4l! - Fix CommonJS TypeScript resolution withmoduleResolutionnode16ornodenext -
Updated dependencies [
e3167edc]:- @graphql-tools/optimize@1.3.1
- @graphql-tools/webpack-loader-runtime@6.4.1
@graphql-tools/webpack-loader-runtime@6.4.1
Patch Changes
- #4624
e3167edcThanks @n1ru4l! - Fix CommonJS TypeScript resolution withmoduleResolutionnode16ornodenext
@graphql-tools/wrap@9.0.0
Major Changes
-
#4566
d8dc67aaThanks @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. TheselectionSetis intentionally generic to support possible future uses. This new pattern organizes all field-level configuration (includingcanonical) into a single structure.