release-1721749482915
版本发布时间: 2024-07-23 23:44:43
ardatan/graphql-tools最新发布版本:release-1727374913368(2024-09-27 02:21:53)
@graphql-tools/delegate@10.0.16
Patch Changes
-
33e8146
Thanks @ardatan! - Fail on query planning phase if the query plan is not successful before the actual execution -
Updated dependencies [
33e8146
]:- @graphql-tools/executor@1.3.0
@graphql-tools/executor@1.3.0
Minor Changes
-
33e8146
Thanks @ardatan! - Ability to create critical errors that prevents to return a partial resultsimport { CRITICAL_ERROR } from '@graphql-tools/executor' const schema = makeExecutableSchema({ typeDefs: ` type Query { hello: String } `, resolvers: { Query: { hello: () => new GraphQLError('Critical error', { extensions: { [CRITICAL_ERROR]: true } }) } } })
This will prevent to return a partial results and will return an error instead.
const result = await execute({ schema, document: parse(`{ hello }`) }) expect(result).toEqual({ errors: [ { message: 'Critical error' } ], data: null // Instead of { hello: null } })
@graphql-tools/federation@2.2.1
Patch Changes
-
33e8146
Thanks @ardatan! - Fail on query planning phase if the query plan is not successful before the actual execution -
Updated dependencies [
33e8146
]:- @graphql-tools/delegate@10.0.16