graphql 17.0.0-alpha.8 → 17.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +54 -10
- package/__dev__/devMode.d.mts +1 -0
- package/__dev__/devMode.d.ts +1 -0
- package/__dev__/devMode.js +3 -0
- package/__dev__/devMode.mjs +3 -0
- package/__dev__/error/GraphQLError.d.mts +1 -0
- package/__dev__/error/GraphQLError.d.ts +1 -0
- package/__dev__/error/GraphQLError.js +3 -0
- package/__dev__/error/GraphQLError.mjs +3 -0
- package/__dev__/error/ensureGraphQLError.d.mts +1 -0
- package/__dev__/error/ensureGraphQLError.d.ts +1 -0
- package/__dev__/error/ensureGraphQLError.js +3 -0
- package/__dev__/error/ensureGraphQLError.mjs +3 -0
- package/__dev__/error/index.d.mts +1 -0
- package/__dev__/error/index.d.ts +1 -0
- package/__dev__/error/index.js +3 -0
- package/__dev__/error/index.mjs +3 -0
- package/__dev__/error/locatedError.d.mts +1 -0
- package/__dev__/error/locatedError.d.ts +1 -0
- package/__dev__/error/locatedError.js +3 -0
- package/__dev__/error/locatedError.mjs +3 -0
- package/__dev__/error/syntaxError.d.mts +1 -0
- package/__dev__/error/syntaxError.d.ts +1 -0
- package/__dev__/error/syntaxError.js +3 -0
- package/__dev__/error/syntaxError.mjs +3 -0
- package/__dev__/execution/AbortedGraphQLExecutionError.d.mts +1 -0
- package/__dev__/execution/AbortedGraphQLExecutionError.d.ts +1 -0
- package/__dev__/execution/AbortedGraphQLExecutionError.js +3 -0
- package/__dev__/execution/AbortedGraphQLExecutionError.mjs +3 -0
- package/__dev__/execution/AsyncWorkTracker.d.mts +1 -0
- package/__dev__/execution/AsyncWorkTracker.d.ts +1 -0
- package/__dev__/execution/AsyncWorkTracker.js +3 -0
- package/__dev__/execution/AsyncWorkTracker.mjs +3 -0
- package/__dev__/execution/Executor.d.mts +1 -0
- package/__dev__/execution/Executor.d.ts +1 -0
- package/__dev__/execution/Executor.js +3 -0
- package/__dev__/execution/Executor.mjs +3 -0
- package/__dev__/execution/ExecutorThrowingOnIncremental.d.mts +1 -0
- package/__dev__/execution/ExecutorThrowingOnIncremental.d.ts +1 -0
- package/__dev__/execution/ExecutorThrowingOnIncremental.js +3 -0
- package/__dev__/execution/ExecutorThrowingOnIncremental.mjs +3 -0
- package/__dev__/execution/cancellablePromise.d.mts +1 -0
- package/__dev__/execution/cancellablePromise.d.ts +1 -0
- package/__dev__/execution/cancellablePromise.js +3 -0
- package/__dev__/execution/cancellablePromise.mjs +3 -0
- package/__dev__/execution/collectFields.d.mts +1 -0
- package/__dev__/execution/collectFields.d.ts +1 -0
- package/__dev__/execution/collectFields.js +3 -0
- package/__dev__/execution/collectFields.mjs +3 -0
- package/__dev__/execution/collectIteratorPromises.d.mts +1 -0
- package/__dev__/execution/collectIteratorPromises.d.ts +1 -0
- package/__dev__/execution/collectIteratorPromises.js +3 -0
- package/__dev__/execution/collectIteratorPromises.mjs +3 -0
- package/__dev__/execution/createSharedExecutionContext.d.mts +1 -0
- package/__dev__/execution/createSharedExecutionContext.d.ts +1 -0
- package/__dev__/execution/createSharedExecutionContext.js +3 -0
- package/__dev__/execution/createSharedExecutionContext.mjs +3 -0
- package/__dev__/execution/execute.d.mts +1 -0
- package/__dev__/execution/execute.d.ts +1 -0
- package/__dev__/execution/execute.js +3 -0
- package/__dev__/execution/execute.mjs +3 -0
- package/__dev__/execution/getStreamUsage.d.mts +1 -0
- package/__dev__/execution/getStreamUsage.d.ts +1 -0
- package/__dev__/execution/getStreamUsage.js +3 -0
- package/__dev__/execution/getStreamUsage.mjs +3 -0
- package/__dev__/execution/getVariableSignature.d.mts +1 -0
- package/__dev__/execution/getVariableSignature.d.ts +1 -0
- package/__dev__/execution/getVariableSignature.js +3 -0
- package/__dev__/execution/getVariableSignature.mjs +3 -0
- package/__dev__/execution/hooks.d.mts +1 -0
- package/__dev__/execution/hooks.d.ts +1 -0
- package/__dev__/execution/hooks.js +3 -0
- package/__dev__/execution/hooks.mjs +3 -0
- package/__dev__/execution/incremental/Computation.d.mts +1 -0
- package/__dev__/execution/incremental/Computation.d.ts +1 -0
- package/__dev__/execution/incremental/Computation.js +3 -0
- package/__dev__/execution/incremental/Computation.mjs +3 -0
- package/__dev__/execution/incremental/IncrementalExecutor.d.mts +1 -0
- package/__dev__/execution/incremental/IncrementalExecutor.d.ts +1 -0
- package/__dev__/execution/incremental/IncrementalExecutor.js +3 -0
- package/__dev__/execution/incremental/IncrementalExecutor.mjs +3 -0
- package/__dev__/execution/incremental/IncrementalPublisher.d.mts +1 -0
- package/__dev__/execution/incremental/IncrementalPublisher.d.ts +1 -0
- package/__dev__/execution/incremental/IncrementalPublisher.js +3 -0
- package/__dev__/execution/incremental/IncrementalPublisher.mjs +3 -0
- package/__dev__/execution/incremental/Queue.d.mts +1 -0
- package/__dev__/execution/incremental/Queue.d.ts +1 -0
- package/__dev__/execution/incremental/Queue.js +3 -0
- package/__dev__/execution/incremental/Queue.mjs +3 -0
- package/__dev__/execution/incremental/WorkQueue.d.mts +1 -0
- package/__dev__/execution/incremental/WorkQueue.d.ts +1 -0
- package/__dev__/execution/incremental/WorkQueue.js +3 -0
- package/__dev__/execution/incremental/WorkQueue.mjs +3 -0
- package/__dev__/execution/incremental/buildExecutionPlan.d.mts +1 -0
- package/__dev__/execution/incremental/buildExecutionPlan.d.ts +1 -0
- package/__dev__/execution/incremental/buildExecutionPlan.js +3 -0
- package/__dev__/execution/incremental/buildExecutionPlan.mjs +3 -0
- package/__dev__/execution/index.d.mts +1 -0
- package/__dev__/execution/index.d.ts +1 -0
- package/__dev__/execution/index.js +3 -0
- package/__dev__/execution/index.mjs +3 -0
- package/__dev__/execution/mapAsyncIterable.d.mts +1 -0
- package/__dev__/execution/mapAsyncIterable.d.ts +1 -0
- package/__dev__/execution/mapAsyncIterable.js +3 -0
- package/__dev__/execution/mapAsyncIterable.mjs +3 -0
- package/__dev__/execution/returnIteratorCatchingErrors.d.mts +1 -0
- package/__dev__/execution/returnIteratorCatchingErrors.d.ts +1 -0
- package/__dev__/execution/returnIteratorCatchingErrors.js +3 -0
- package/__dev__/execution/returnIteratorCatchingErrors.mjs +3 -0
- package/__dev__/execution/values.d.mts +1 -0
- package/__dev__/execution/values.d.ts +1 -0
- package/__dev__/execution/values.js +3 -0
- package/__dev__/execution/values.mjs +3 -0
- package/__dev__/execution/withConcurrentAbruptClose.d.mts +1 -0
- package/__dev__/execution/withConcurrentAbruptClose.d.ts +1 -0
- package/__dev__/execution/withConcurrentAbruptClose.js +3 -0
- package/__dev__/execution/withConcurrentAbruptClose.mjs +3 -0
- package/__dev__/graphql.d.mts +1 -0
- package/__dev__/graphql.d.ts +1 -0
- package/__dev__/graphql.js +3 -0
- package/__dev__/graphql.mjs +3 -0
- package/__dev__/harness.d.mts +1 -0
- package/__dev__/harness.d.ts +1 -0
- package/__dev__/harness.js +3 -0
- package/__dev__/harness.mjs +3 -0
- package/__dev__/index.d.mts +1 -0
- package/__dev__/index.d.ts +1 -0
- package/__dev__/index.js +3 -0
- package/__dev__/index.mjs +3 -0
- package/__dev__/jsutils/AccumulatorMap.d.mts +1 -0
- package/__dev__/jsutils/AccumulatorMap.d.ts +1 -0
- package/__dev__/jsutils/AccumulatorMap.js +3 -0
- package/__dev__/jsutils/AccumulatorMap.mjs +3 -0
- package/__dev__/jsutils/Maybe.d.mts +1 -0
- package/__dev__/jsutils/Maybe.d.ts +1 -0
- package/__dev__/jsutils/Maybe.js +3 -0
- package/__dev__/jsutils/Maybe.mjs +3 -0
- package/__dev__/jsutils/ObjMap.d.mts +1 -0
- package/__dev__/jsutils/ObjMap.d.ts +1 -0
- package/__dev__/jsutils/ObjMap.js +3 -0
- package/__dev__/jsutils/ObjMap.mjs +3 -0
- package/__dev__/jsutils/Path.d.mts +1 -0
- package/__dev__/jsutils/Path.d.ts +1 -0
- package/__dev__/jsutils/Path.js +3 -0
- package/__dev__/jsutils/Path.mjs +3 -0
- package/__dev__/jsutils/PromiseOrValue.d.mts +1 -0
- package/__dev__/jsutils/PromiseOrValue.d.ts +1 -0
- package/__dev__/jsutils/PromiseOrValue.js +3 -0
- package/__dev__/jsutils/PromiseOrValue.mjs +3 -0
- package/__dev__/jsutils/capitalize.d.mts +1 -0
- package/__dev__/jsutils/capitalize.d.ts +1 -0
- package/__dev__/jsutils/capitalize.js +3 -0
- package/__dev__/jsutils/capitalize.mjs +3 -0
- package/__dev__/jsutils/devAssert.d.mts +1 -0
- package/__dev__/jsutils/devAssert.d.ts +1 -0
- package/__dev__/jsutils/devAssert.js +3 -0
- package/__dev__/jsutils/devAssert.mjs +3 -0
- package/__dev__/jsutils/didYouMean.d.mts +1 -0
- package/__dev__/jsutils/didYouMean.d.ts +1 -0
- package/__dev__/jsutils/didYouMean.js +3 -0
- package/__dev__/jsutils/didYouMean.mjs +3 -0
- package/__dev__/jsutils/formatList.d.mts +1 -0
- package/__dev__/jsutils/formatList.d.ts +1 -0
- package/__dev__/jsutils/formatList.js +3 -0
- package/__dev__/jsutils/formatList.mjs +3 -0
- package/__dev__/jsutils/getBySet.d.mts +1 -0
- package/__dev__/jsutils/getBySet.d.ts +1 -0
- package/__dev__/jsutils/getBySet.js +3 -0
- package/__dev__/jsutils/getBySet.mjs +3 -0
- package/__dev__/jsutils/groupBy.d.mts +1 -0
- package/__dev__/jsutils/groupBy.d.ts +1 -0
- package/__dev__/jsutils/groupBy.js +3 -0
- package/__dev__/jsutils/groupBy.mjs +3 -0
- package/__dev__/jsutils/identityFunc.d.mts +1 -0
- package/__dev__/jsutils/identityFunc.d.ts +1 -0
- package/__dev__/jsutils/identityFunc.js +3 -0
- package/__dev__/jsutils/identityFunc.mjs +3 -0
- package/__dev__/jsutils/inspect.d.mts +1 -0
- package/__dev__/jsutils/inspect.d.ts +1 -0
- package/__dev__/jsutils/inspect.js +3 -0
- package/__dev__/jsutils/inspect.mjs +3 -0
- package/__dev__/jsutils/instanceOf.d.mts +1 -0
- package/__dev__/jsutils/instanceOf.d.ts +1 -0
- package/__dev__/jsutils/instanceOf.js +3 -0
- package/__dev__/jsutils/instanceOf.mjs +3 -0
- package/__dev__/jsutils/invariant.d.mts +1 -0
- package/__dev__/jsutils/invariant.d.ts +1 -0
- package/__dev__/jsutils/invariant.js +3 -0
- package/__dev__/jsutils/invariant.mjs +3 -0
- package/__dev__/jsutils/isAsyncIterable.d.mts +1 -0
- package/__dev__/jsutils/isAsyncIterable.d.ts +1 -0
- package/__dev__/jsutils/isAsyncIterable.js +3 -0
- package/__dev__/jsutils/isAsyncIterable.mjs +3 -0
- package/__dev__/jsutils/isIterableObject.d.mts +1 -0
- package/__dev__/jsutils/isIterableObject.d.ts +1 -0
- package/__dev__/jsutils/isIterableObject.js +3 -0
- package/__dev__/jsutils/isIterableObject.mjs +3 -0
- package/__dev__/jsutils/isObjectLike.d.mts +1 -0
- package/__dev__/jsutils/isObjectLike.d.ts +1 -0
- package/__dev__/jsutils/isObjectLike.js +3 -0
- package/__dev__/jsutils/isObjectLike.mjs +3 -0
- package/__dev__/jsutils/isPromise.d.mts +1 -0
- package/__dev__/jsutils/isPromise.d.ts +1 -0
- package/__dev__/jsutils/isPromise.js +3 -0
- package/__dev__/jsutils/isPromise.mjs +3 -0
- package/__dev__/jsutils/isSameSet.d.mts +1 -0
- package/__dev__/jsutils/isSameSet.d.ts +1 -0
- package/__dev__/jsutils/isSameSet.js +3 -0
- package/__dev__/jsutils/isSameSet.mjs +3 -0
- package/__dev__/jsutils/keyMap.d.mts +1 -0
- package/__dev__/jsutils/keyMap.d.ts +1 -0
- package/__dev__/jsutils/keyMap.js +3 -0
- package/__dev__/jsutils/keyMap.mjs +3 -0
- package/__dev__/jsutils/keyValMap.d.mts +1 -0
- package/__dev__/jsutils/keyValMap.d.ts +1 -0
- package/__dev__/jsutils/keyValMap.js +3 -0
- package/__dev__/jsutils/keyValMap.mjs +3 -0
- package/__dev__/jsutils/mapValue.d.mts +1 -0
- package/__dev__/jsutils/mapValue.d.ts +1 -0
- package/__dev__/jsutils/mapValue.js +3 -0
- package/__dev__/jsutils/mapValue.mjs +3 -0
- package/__dev__/jsutils/memoize1.d.mts +1 -0
- package/__dev__/jsutils/memoize1.d.ts +1 -0
- package/__dev__/jsutils/memoize1.js +3 -0
- package/__dev__/jsutils/memoize1.mjs +3 -0
- package/__dev__/jsutils/memoize2.d.mts +1 -0
- package/__dev__/jsutils/memoize2.d.ts +1 -0
- package/__dev__/jsutils/memoize2.js +3 -0
- package/__dev__/jsutils/memoize2.mjs +3 -0
- package/__dev__/jsutils/memoize3.d.mts +1 -0
- package/__dev__/jsutils/memoize3.d.ts +1 -0
- package/__dev__/jsutils/memoize3.js +3 -0
- package/__dev__/jsutils/memoize3.mjs +3 -0
- package/__dev__/jsutils/naturalCompare.d.mts +1 -0
- package/__dev__/jsutils/naturalCompare.d.ts +1 -0
- package/__dev__/jsutils/naturalCompare.js +3 -0
- package/__dev__/jsutils/naturalCompare.mjs +3 -0
- package/__dev__/jsutils/printPathArray.d.mts +1 -0
- package/__dev__/jsutils/printPathArray.d.ts +1 -0
- package/__dev__/jsutils/printPathArray.js +3 -0
- package/__dev__/jsutils/printPathArray.mjs +3 -0
- package/__dev__/jsutils/promiseForObject.d.mts +1 -0
- package/__dev__/jsutils/promiseForObject.d.ts +1 -0
- package/__dev__/jsutils/promiseForObject.js +3 -0
- package/__dev__/jsutils/promiseForObject.mjs +3 -0
- package/__dev__/jsutils/promiseReduce.d.mts +1 -0
- package/__dev__/jsutils/promiseReduce.d.ts +1 -0
- package/__dev__/jsutils/promiseReduce.js +3 -0
- package/__dev__/jsutils/promiseReduce.mjs +3 -0
- package/__dev__/jsutils/promiseWithResolvers.d.mts +1 -0
- package/__dev__/jsutils/promiseWithResolvers.d.ts +1 -0
- package/__dev__/jsutils/promiseWithResolvers.js +3 -0
- package/__dev__/jsutils/promiseWithResolvers.mjs +3 -0
- package/__dev__/jsutils/suggestionList.d.mts +1 -0
- package/__dev__/jsutils/suggestionList.d.ts +1 -0
- package/__dev__/jsutils/suggestionList.js +3 -0
- package/__dev__/jsutils/suggestionList.mjs +3 -0
- package/__dev__/jsutils/toError.d.mts +1 -0
- package/__dev__/jsutils/toError.d.ts +1 -0
- package/__dev__/jsutils/toError.js +3 -0
- package/__dev__/jsutils/toError.mjs +3 -0
- package/__dev__/jsutils/toObjMap.d.mts +1 -0
- package/__dev__/jsutils/toObjMap.d.ts +1 -0
- package/__dev__/jsutils/toObjMap.js +3 -0
- package/__dev__/jsutils/toObjMap.mjs +3 -0
- package/__dev__/language/KindTypeMap.d.mts +1 -0
- package/__dev__/language/KindTypeMap.d.ts +1 -0
- package/__dev__/language/KindTypeMap.js +3 -0
- package/__dev__/language/KindTypeMap.mjs +3 -0
- package/__dev__/language/ast.d.mts +1 -0
- package/__dev__/language/ast.d.ts +1 -0
- package/__dev__/language/ast.js +3 -0
- package/__dev__/language/ast.mjs +3 -0
- package/__dev__/language/blockString.d.mts +1 -0
- package/__dev__/language/blockString.d.ts +1 -0
- package/__dev__/language/blockString.js +3 -0
- package/__dev__/language/blockString.mjs +3 -0
- package/__dev__/language/characterClasses.d.mts +1 -0
- package/__dev__/language/characterClasses.d.ts +1 -0
- package/__dev__/language/characterClasses.js +3 -0
- package/__dev__/language/characterClasses.mjs +3 -0
- package/__dev__/language/directiveLocation.d.mts +1 -0
- package/__dev__/language/directiveLocation.d.ts +1 -0
- package/__dev__/language/directiveLocation.js +3 -0
- package/__dev__/language/directiveLocation.mjs +3 -0
- package/__dev__/language/index.d.mts +1 -0
- package/__dev__/language/index.d.ts +1 -0
- package/__dev__/language/index.js +3 -0
- package/__dev__/language/index.mjs +3 -0
- package/__dev__/language/kinds.d.mts +1 -0
- package/__dev__/language/kinds.d.ts +1 -0
- package/__dev__/language/kinds.js +3 -0
- package/__dev__/language/kinds.mjs +3 -0
- package/__dev__/language/kinds_.d.mts +1 -0
- package/__dev__/language/kinds_.d.ts +1 -0
- package/__dev__/language/kinds_.js +3 -0
- package/__dev__/language/kinds_.mjs +3 -0
- package/__dev__/language/lexer.d.mts +1 -0
- package/__dev__/language/lexer.d.ts +1 -0
- package/__dev__/language/lexer.js +3 -0
- package/__dev__/language/lexer.mjs +3 -0
- package/__dev__/language/location.d.mts +1 -0
- package/__dev__/language/location.d.ts +1 -0
- package/__dev__/language/location.js +3 -0
- package/__dev__/language/location.mjs +3 -0
- package/__dev__/language/parser.d.mts +1 -0
- package/__dev__/language/parser.d.ts +1 -0
- package/__dev__/language/parser.js +3 -0
- package/__dev__/language/parser.mjs +3 -0
- package/__dev__/language/predicates.d.mts +1 -0
- package/__dev__/language/predicates.d.ts +1 -0
- package/__dev__/language/predicates.js +3 -0
- package/__dev__/language/predicates.mjs +3 -0
- package/__dev__/language/printLocation.d.mts +1 -0
- package/__dev__/language/printLocation.d.ts +1 -0
- package/__dev__/language/printLocation.js +3 -0
- package/__dev__/language/printLocation.mjs +3 -0
- package/__dev__/language/printString.d.mts +1 -0
- package/__dev__/language/printString.d.ts +1 -0
- package/__dev__/language/printString.js +3 -0
- package/__dev__/language/printString.mjs +3 -0
- package/__dev__/language/printer.d.mts +1 -0
- package/__dev__/language/printer.d.ts +1 -0
- package/__dev__/language/printer.js +3 -0
- package/__dev__/language/printer.mjs +3 -0
- package/__dev__/language/schemaCoordinateLexer.d.mts +1 -0
- package/__dev__/language/schemaCoordinateLexer.d.ts +1 -0
- package/__dev__/language/schemaCoordinateLexer.js +3 -0
- package/__dev__/language/schemaCoordinateLexer.mjs +3 -0
- package/__dev__/language/source.d.mts +1 -0
- package/__dev__/language/source.d.ts +1 -0
- package/__dev__/language/source.js +3 -0
- package/__dev__/language/source.mjs +3 -0
- package/__dev__/language/tokenKind.d.mts +1 -0
- package/__dev__/language/tokenKind.d.ts +1 -0
- package/__dev__/language/tokenKind.js +3 -0
- package/__dev__/language/tokenKind.mjs +3 -0
- package/__dev__/language/visitor.d.mts +1 -0
- package/__dev__/language/visitor.d.ts +1 -0
- package/__dev__/language/visitor.js +3 -0
- package/__dev__/language/visitor.mjs +3 -0
- package/__dev__/type/assertName.d.mts +1 -0
- package/__dev__/type/assertName.d.ts +1 -0
- package/__dev__/type/assertName.js +3 -0
- package/__dev__/type/assertName.mjs +3 -0
- package/__dev__/type/definition.d.mts +1 -0
- package/__dev__/type/definition.d.ts +1 -0
- package/__dev__/type/definition.js +3 -0
- package/__dev__/type/definition.mjs +3 -0
- package/__dev__/type/directives.d.mts +1 -0
- package/__dev__/type/directives.d.ts +1 -0
- package/__dev__/type/directives.js +3 -0
- package/__dev__/type/directives.mjs +3 -0
- package/__dev__/type/index.d.mts +1 -0
- package/__dev__/type/index.d.ts +1 -0
- package/__dev__/type/index.js +3 -0
- package/__dev__/type/index.mjs +3 -0
- package/__dev__/type/introspection.d.mts +1 -0
- package/__dev__/type/introspection.d.ts +1 -0
- package/__dev__/type/introspection.js +3 -0
- package/__dev__/type/introspection.mjs +3 -0
- package/__dev__/type/scalars.d.mts +1 -0
- package/__dev__/type/scalars.d.ts +1 -0
- package/__dev__/type/scalars.js +3 -0
- package/__dev__/type/scalars.mjs +3 -0
- package/__dev__/type/schema.d.mts +1 -0
- package/__dev__/type/schema.d.ts +1 -0
- package/__dev__/type/schema.js +3 -0
- package/__dev__/type/schema.mjs +3 -0
- package/__dev__/type/validate.d.mts +1 -0
- package/__dev__/type/validate.d.ts +1 -0
- package/__dev__/type/validate.js +3 -0
- package/__dev__/type/validate.mjs +3 -0
- package/__dev__/utilities/TypeInfo.d.mts +1 -0
- package/__dev__/utilities/TypeInfo.d.ts +1 -0
- package/__dev__/utilities/TypeInfo.js +3 -0
- package/__dev__/utilities/TypeInfo.mjs +3 -0
- package/__dev__/utilities/astFromValue.d.mts +1 -0
- package/__dev__/utilities/astFromValue.d.ts +1 -0
- package/__dev__/utilities/astFromValue.js +3 -0
- package/__dev__/utilities/astFromValue.mjs +3 -0
- package/__dev__/utilities/buildASTSchema.d.mts +1 -0
- package/__dev__/utilities/buildASTSchema.d.ts +1 -0
- package/__dev__/utilities/buildASTSchema.js +3 -0
- package/__dev__/utilities/buildASTSchema.mjs +3 -0
- package/__dev__/utilities/buildClientSchema.d.mts +1 -0
- package/__dev__/utilities/buildClientSchema.d.ts +1 -0
- package/__dev__/utilities/buildClientSchema.js +3 -0
- package/__dev__/utilities/buildClientSchema.mjs +3 -0
- package/__dev__/utilities/coerceInputValue.d.mts +1 -0
- package/__dev__/utilities/coerceInputValue.d.ts +1 -0
- package/__dev__/utilities/coerceInputValue.js +3 -0
- package/__dev__/utilities/coerceInputValue.mjs +3 -0
- package/__dev__/utilities/concatAST.d.mts +1 -0
- package/__dev__/utilities/concatAST.d.ts +1 -0
- package/__dev__/utilities/concatAST.js +3 -0
- package/__dev__/utilities/concatAST.mjs +3 -0
- package/__dev__/utilities/extendSchema.d.mts +1 -0
- package/__dev__/utilities/extendSchema.d.ts +1 -0
- package/__dev__/utilities/extendSchema.js +3 -0
- package/__dev__/utilities/extendSchema.mjs +3 -0
- package/__dev__/utilities/findSchemaChanges.d.mts +1 -0
- package/__dev__/utilities/findSchemaChanges.d.ts +1 -0
- package/__dev__/utilities/findSchemaChanges.js +3 -0
- package/__dev__/utilities/findSchemaChanges.mjs +3 -0
- package/__dev__/utilities/getDefaultValueAST.d.mts +1 -0
- package/__dev__/utilities/getDefaultValueAST.d.ts +1 -0
- package/__dev__/utilities/getDefaultValueAST.js +3 -0
- package/__dev__/utilities/getDefaultValueAST.mjs +3 -0
- package/__dev__/utilities/getIntrospectionQuery.d.mts +1 -0
- package/__dev__/utilities/getIntrospectionQuery.d.ts +1 -0
- package/__dev__/utilities/getIntrospectionQuery.js +3 -0
- package/__dev__/utilities/getIntrospectionQuery.mjs +3 -0
- package/__dev__/utilities/getOperationAST.d.mts +1 -0
- package/__dev__/utilities/getOperationAST.d.ts +1 -0
- package/__dev__/utilities/getOperationAST.js +3 -0
- package/__dev__/utilities/getOperationAST.mjs +3 -0
- package/__dev__/utilities/index.d.mts +1 -0
- package/__dev__/utilities/index.d.ts +1 -0
- package/__dev__/utilities/index.js +3 -0
- package/__dev__/utilities/index.mjs +3 -0
- package/__dev__/utilities/introspectionFromSchema.d.mts +1 -0
- package/__dev__/utilities/introspectionFromSchema.d.ts +1 -0
- package/__dev__/utilities/introspectionFromSchema.js +3 -0
- package/__dev__/utilities/introspectionFromSchema.mjs +3 -0
- package/__dev__/utilities/lexicographicSortSchema.d.mts +1 -0
- package/__dev__/utilities/lexicographicSortSchema.d.ts +1 -0
- package/__dev__/utilities/lexicographicSortSchema.js +3 -0
- package/__dev__/utilities/lexicographicSortSchema.mjs +3 -0
- package/__dev__/utilities/mapSchemaConfig.d.mts +1 -0
- package/__dev__/utilities/mapSchemaConfig.d.ts +1 -0
- package/__dev__/utilities/mapSchemaConfig.js +3 -0
- package/__dev__/utilities/mapSchemaConfig.mjs +3 -0
- package/__dev__/utilities/printSchema.d.mts +1 -0
- package/__dev__/utilities/printSchema.d.ts +1 -0
- package/__dev__/utilities/printSchema.js +3 -0
- package/__dev__/utilities/printSchema.mjs +3 -0
- package/__dev__/utilities/replaceVariables.d.mts +1 -0
- package/__dev__/utilities/replaceVariables.d.ts +1 -0
- package/__dev__/utilities/replaceVariables.js +3 -0
- package/__dev__/utilities/replaceVariables.mjs +3 -0
- package/__dev__/utilities/resolveSchemaCoordinate.d.mts +1 -0
- package/__dev__/utilities/resolveSchemaCoordinate.d.ts +1 -0
- package/__dev__/utilities/resolveSchemaCoordinate.js +3 -0
- package/__dev__/utilities/resolveSchemaCoordinate.mjs +3 -0
- package/__dev__/utilities/separateOperations.d.mts +1 -0
- package/__dev__/utilities/separateOperations.d.ts +1 -0
- package/__dev__/utilities/separateOperations.js +3 -0
- package/__dev__/utilities/separateOperations.mjs +3 -0
- package/__dev__/utilities/sortValueNode.d.mts +1 -0
- package/__dev__/utilities/sortValueNode.d.ts +1 -0
- package/__dev__/utilities/sortValueNode.js +3 -0
- package/__dev__/utilities/sortValueNode.mjs +3 -0
- package/__dev__/utilities/stripIgnoredCharacters.d.mts +1 -0
- package/__dev__/utilities/stripIgnoredCharacters.d.ts +1 -0
- package/__dev__/utilities/stripIgnoredCharacters.js +3 -0
- package/__dev__/utilities/stripIgnoredCharacters.mjs +3 -0
- package/__dev__/utilities/typeComparators.d.mts +1 -0
- package/__dev__/utilities/typeComparators.d.ts +1 -0
- package/__dev__/utilities/typeComparators.js +3 -0
- package/__dev__/utilities/typeComparators.mjs +3 -0
- package/__dev__/utilities/typeFromAST.d.mts +1 -0
- package/__dev__/utilities/typeFromAST.d.ts +1 -0
- package/__dev__/utilities/typeFromAST.js +3 -0
- package/__dev__/utilities/typeFromAST.mjs +3 -0
- package/__dev__/utilities/typedQueryDocumentNode.d.mts +1 -0
- package/__dev__/utilities/typedQueryDocumentNode.d.ts +1 -0
- package/__dev__/utilities/typedQueryDocumentNode.js +3 -0
- package/__dev__/utilities/typedQueryDocumentNode.mjs +3 -0
- package/__dev__/utilities/validateInputValue.d.mts +1 -0
- package/__dev__/utilities/validateInputValue.d.ts +1 -0
- package/__dev__/utilities/validateInputValue.js +3 -0
- package/__dev__/utilities/validateInputValue.mjs +3 -0
- package/__dev__/utilities/valueFromAST.d.mts +1 -0
- package/__dev__/utilities/valueFromAST.d.ts +1 -0
- package/__dev__/utilities/valueFromAST.js +3 -0
- package/__dev__/utilities/valueFromAST.mjs +3 -0
- package/__dev__/utilities/valueFromASTUntyped.d.mts +1 -0
- package/__dev__/utilities/valueFromASTUntyped.d.ts +1 -0
- package/__dev__/utilities/valueFromASTUntyped.js +3 -0
- package/__dev__/utilities/valueFromASTUntyped.mjs +3 -0
- package/__dev__/utilities/valueToLiteral.d.mts +1 -0
- package/__dev__/utilities/valueToLiteral.d.ts +1 -0
- package/__dev__/utilities/valueToLiteral.js +3 -0
- package/__dev__/utilities/valueToLiteral.mjs +3 -0
- package/__dev__/validation/ValidationContext.d.mts +1 -0
- package/__dev__/validation/ValidationContext.d.ts +1 -0
- package/__dev__/validation/ValidationContext.js +3 -0
- package/__dev__/validation/ValidationContext.mjs +3 -0
- package/__dev__/validation/index.d.mts +1 -0
- package/__dev__/validation/index.d.ts +1 -0
- package/__dev__/validation/index.js +3 -0
- package/__dev__/validation/index.mjs +3 -0
- package/__dev__/validation/rules/DeferStreamDirectiveLabelRule.d.mts +1 -0
- package/__dev__/validation/rules/DeferStreamDirectiveLabelRule.d.ts +1 -0
- package/__dev__/validation/rules/DeferStreamDirectiveLabelRule.js +3 -0
- package/__dev__/validation/rules/DeferStreamDirectiveLabelRule.mjs +3 -0
- package/__dev__/validation/rules/DeferStreamDirectiveOnRootFieldRule.d.mts +1 -0
- package/__dev__/validation/rules/DeferStreamDirectiveOnRootFieldRule.d.ts +1 -0
- package/__dev__/validation/rules/DeferStreamDirectiveOnRootFieldRule.js +3 -0
- package/__dev__/validation/rules/DeferStreamDirectiveOnRootFieldRule.mjs +3 -0
- package/__dev__/validation/rules/DeferStreamDirectiveOnValidOperationsRule.d.mts +1 -0
- package/__dev__/validation/rules/DeferStreamDirectiveOnValidOperationsRule.d.ts +1 -0
- package/__dev__/validation/rules/DeferStreamDirectiveOnValidOperationsRule.js +3 -0
- package/__dev__/validation/rules/DeferStreamDirectiveOnValidOperationsRule.mjs +3 -0
- package/__dev__/validation/rules/ExecutableDefinitionsRule.d.mts +1 -0
- package/__dev__/validation/rules/ExecutableDefinitionsRule.d.ts +1 -0
- package/__dev__/validation/rules/ExecutableDefinitionsRule.js +3 -0
- package/__dev__/validation/rules/ExecutableDefinitionsRule.mjs +3 -0
- package/__dev__/validation/rules/FieldsOnCorrectTypeRule.d.mts +1 -0
- package/__dev__/validation/rules/FieldsOnCorrectTypeRule.d.ts +1 -0
- package/__dev__/validation/rules/FieldsOnCorrectTypeRule.js +3 -0
- package/__dev__/validation/rules/FieldsOnCorrectTypeRule.mjs +3 -0
- package/__dev__/validation/rules/FragmentsOnCompositeTypesRule.d.mts +1 -0
- package/__dev__/validation/rules/FragmentsOnCompositeTypesRule.d.ts +1 -0
- package/__dev__/validation/rules/FragmentsOnCompositeTypesRule.js +3 -0
- package/__dev__/validation/rules/FragmentsOnCompositeTypesRule.mjs +3 -0
- package/__dev__/validation/rules/KnownArgumentNamesRule.d.mts +1 -0
- package/__dev__/validation/rules/KnownArgumentNamesRule.d.ts +1 -0
- package/__dev__/validation/rules/KnownArgumentNamesRule.js +3 -0
- package/__dev__/validation/rules/KnownArgumentNamesRule.mjs +3 -0
- package/__dev__/validation/rules/KnownDirectivesRule.d.mts +1 -0
- package/__dev__/validation/rules/KnownDirectivesRule.d.ts +1 -0
- package/__dev__/validation/rules/KnownDirectivesRule.js +3 -0
- package/__dev__/validation/rules/KnownDirectivesRule.mjs +3 -0
- package/__dev__/validation/rules/KnownFragmentNamesRule.d.mts +1 -0
- package/__dev__/validation/rules/KnownFragmentNamesRule.d.ts +1 -0
- package/__dev__/validation/rules/KnownFragmentNamesRule.js +3 -0
- package/__dev__/validation/rules/KnownFragmentNamesRule.mjs +3 -0
- package/__dev__/validation/rules/KnownOperationTypesRule.d.mts +1 -0
- package/__dev__/validation/rules/KnownOperationTypesRule.d.ts +1 -0
- package/__dev__/validation/rules/KnownOperationTypesRule.js +3 -0
- package/__dev__/validation/rules/KnownOperationTypesRule.mjs +3 -0
- package/__dev__/validation/rules/KnownTypeNamesRule.d.mts +1 -0
- package/__dev__/validation/rules/KnownTypeNamesRule.d.ts +1 -0
- package/__dev__/validation/rules/KnownTypeNamesRule.js +3 -0
- package/__dev__/validation/rules/KnownTypeNamesRule.mjs +3 -0
- package/__dev__/validation/rules/LoneAnonymousOperationRule.d.mts +1 -0
- package/__dev__/validation/rules/LoneAnonymousOperationRule.d.ts +1 -0
- package/__dev__/validation/rules/LoneAnonymousOperationRule.js +3 -0
- package/__dev__/validation/rules/LoneAnonymousOperationRule.mjs +3 -0
- package/__dev__/validation/rules/LoneSchemaDefinitionRule.d.mts +1 -0
- package/__dev__/validation/rules/LoneSchemaDefinitionRule.d.ts +1 -0
- package/__dev__/validation/rules/LoneSchemaDefinitionRule.js +3 -0
- package/__dev__/validation/rules/LoneSchemaDefinitionRule.mjs +3 -0
- package/__dev__/validation/rules/MaxIntrospectionDepthRule.d.mts +1 -0
- package/__dev__/validation/rules/MaxIntrospectionDepthRule.d.ts +1 -0
- package/__dev__/validation/rules/MaxIntrospectionDepthRule.js +3 -0
- package/__dev__/validation/rules/MaxIntrospectionDepthRule.mjs +3 -0
- package/__dev__/validation/rules/NoFragmentCyclesRule.d.mts +1 -0
- package/__dev__/validation/rules/NoFragmentCyclesRule.d.ts +1 -0
- package/__dev__/validation/rules/NoFragmentCyclesRule.js +3 -0
- package/__dev__/validation/rules/NoFragmentCyclesRule.mjs +3 -0
- package/__dev__/validation/rules/NoUndefinedVariablesRule.d.mts +1 -0
- package/__dev__/validation/rules/NoUndefinedVariablesRule.d.ts +1 -0
- package/__dev__/validation/rules/NoUndefinedVariablesRule.js +3 -0
- package/__dev__/validation/rules/NoUndefinedVariablesRule.mjs +3 -0
- package/__dev__/validation/rules/NoUnusedFragmentsRule.d.mts +1 -0
- package/__dev__/validation/rules/NoUnusedFragmentsRule.d.ts +1 -0
- package/__dev__/validation/rules/NoUnusedFragmentsRule.js +3 -0
- package/__dev__/validation/rules/NoUnusedFragmentsRule.mjs +3 -0
- package/__dev__/validation/rules/NoUnusedVariablesRule.d.mts +1 -0
- package/__dev__/validation/rules/NoUnusedVariablesRule.d.ts +1 -0
- package/__dev__/validation/rules/NoUnusedVariablesRule.js +3 -0
- package/__dev__/validation/rules/NoUnusedVariablesRule.mjs +3 -0
- package/__dev__/validation/rules/OverlappingFieldsCanBeMergedRule.d.mts +1 -0
- package/__dev__/validation/rules/OverlappingFieldsCanBeMergedRule.d.ts +1 -0
- package/__dev__/validation/rules/OverlappingFieldsCanBeMergedRule.js +3 -0
- package/__dev__/validation/rules/OverlappingFieldsCanBeMergedRule.mjs +3 -0
- package/__dev__/validation/rules/PossibleFragmentSpreadsRule.d.mts +1 -0
- package/__dev__/validation/rules/PossibleFragmentSpreadsRule.d.ts +1 -0
- package/__dev__/validation/rules/PossibleFragmentSpreadsRule.js +3 -0
- package/__dev__/validation/rules/PossibleFragmentSpreadsRule.mjs +3 -0
- package/__dev__/validation/rules/PossibleTypeExtensionsRule.d.mts +1 -0
- package/__dev__/validation/rules/PossibleTypeExtensionsRule.d.ts +1 -0
- package/__dev__/validation/rules/PossibleTypeExtensionsRule.js +3 -0
- package/__dev__/validation/rules/PossibleTypeExtensionsRule.mjs +3 -0
- package/__dev__/validation/rules/ProvidedRequiredArgumentsRule.d.mts +1 -0
- package/__dev__/validation/rules/ProvidedRequiredArgumentsRule.d.ts +1 -0
- package/__dev__/validation/rules/ProvidedRequiredArgumentsRule.js +3 -0
- package/__dev__/validation/rules/ProvidedRequiredArgumentsRule.mjs +3 -0
- package/__dev__/validation/rules/ScalarLeafsRule.d.mts +1 -0
- package/__dev__/validation/rules/ScalarLeafsRule.d.ts +1 -0
- package/__dev__/validation/rules/ScalarLeafsRule.js +3 -0
- package/__dev__/validation/rules/ScalarLeafsRule.mjs +3 -0
- package/__dev__/validation/rules/SingleFieldSubscriptionsRule.d.mts +1 -0
- package/__dev__/validation/rules/SingleFieldSubscriptionsRule.d.ts +1 -0
- package/__dev__/validation/rules/SingleFieldSubscriptionsRule.js +3 -0
- package/__dev__/validation/rules/SingleFieldSubscriptionsRule.mjs +3 -0
- package/__dev__/validation/rules/StreamDirectiveOnListFieldRule.d.mts +1 -0
- package/__dev__/validation/rules/StreamDirectiveOnListFieldRule.d.ts +1 -0
- package/__dev__/validation/rules/StreamDirectiveOnListFieldRule.js +3 -0
- package/__dev__/validation/rules/StreamDirectiveOnListFieldRule.mjs +3 -0
- package/__dev__/validation/rules/UniqueArgumentDefinitionNamesRule.d.mts +1 -0
- package/__dev__/validation/rules/UniqueArgumentDefinitionNamesRule.d.ts +1 -0
- package/__dev__/validation/rules/UniqueArgumentDefinitionNamesRule.js +3 -0
- package/__dev__/validation/rules/UniqueArgumentDefinitionNamesRule.mjs +3 -0
- package/__dev__/validation/rules/UniqueArgumentNamesRule.d.mts +1 -0
- package/__dev__/validation/rules/UniqueArgumentNamesRule.d.ts +1 -0
- package/__dev__/validation/rules/UniqueArgumentNamesRule.js +3 -0
- package/__dev__/validation/rules/UniqueArgumentNamesRule.mjs +3 -0
- package/__dev__/validation/rules/UniqueDirectiveNamesRule.d.mts +1 -0
- package/__dev__/validation/rules/UniqueDirectiveNamesRule.d.ts +1 -0
- package/__dev__/validation/rules/UniqueDirectiveNamesRule.js +3 -0
- package/__dev__/validation/rules/UniqueDirectiveNamesRule.mjs +3 -0
- package/__dev__/validation/rules/UniqueDirectivesPerLocationRule.d.mts +1 -0
- package/__dev__/validation/rules/UniqueDirectivesPerLocationRule.d.ts +1 -0
- package/__dev__/validation/rules/UniqueDirectivesPerLocationRule.js +3 -0
- package/__dev__/validation/rules/UniqueDirectivesPerLocationRule.mjs +3 -0
- package/__dev__/validation/rules/UniqueEnumValueNamesRule.d.mts +1 -0
- package/__dev__/validation/rules/UniqueEnumValueNamesRule.d.ts +1 -0
- package/__dev__/validation/rules/UniqueEnumValueNamesRule.js +3 -0
- package/__dev__/validation/rules/UniqueEnumValueNamesRule.mjs +3 -0
- package/__dev__/validation/rules/UniqueFieldDefinitionNamesRule.d.mts +1 -0
- package/__dev__/validation/rules/UniqueFieldDefinitionNamesRule.d.ts +1 -0
- package/__dev__/validation/rules/UniqueFieldDefinitionNamesRule.js +3 -0
- package/__dev__/validation/rules/UniqueFieldDefinitionNamesRule.mjs +3 -0
- package/__dev__/validation/rules/UniqueFragmentNamesRule.d.mts +1 -0
- package/__dev__/validation/rules/UniqueFragmentNamesRule.d.ts +1 -0
- package/__dev__/validation/rules/UniqueFragmentNamesRule.js +3 -0
- package/__dev__/validation/rules/UniqueFragmentNamesRule.mjs +3 -0
- package/__dev__/validation/rules/UniqueInputFieldNamesRule.d.mts +1 -0
- package/__dev__/validation/rules/UniqueInputFieldNamesRule.d.ts +1 -0
- package/__dev__/validation/rules/UniqueInputFieldNamesRule.js +3 -0
- package/__dev__/validation/rules/UniqueInputFieldNamesRule.mjs +3 -0
- package/__dev__/validation/rules/UniqueOperationNamesRule.d.mts +1 -0
- package/__dev__/validation/rules/UniqueOperationNamesRule.d.ts +1 -0
- package/__dev__/validation/rules/UniqueOperationNamesRule.js +3 -0
- package/__dev__/validation/rules/UniqueOperationNamesRule.mjs +3 -0
- package/__dev__/validation/rules/UniqueOperationTypesRule.d.mts +1 -0
- package/__dev__/validation/rules/UniqueOperationTypesRule.d.ts +1 -0
- package/__dev__/validation/rules/UniqueOperationTypesRule.js +3 -0
- package/__dev__/validation/rules/UniqueOperationTypesRule.mjs +3 -0
- package/__dev__/validation/rules/UniqueTypeNamesRule.d.mts +1 -0
- package/__dev__/validation/rules/UniqueTypeNamesRule.d.ts +1 -0
- package/__dev__/validation/rules/UniqueTypeNamesRule.js +3 -0
- package/__dev__/validation/rules/UniqueTypeNamesRule.mjs +3 -0
- package/__dev__/validation/rules/UniqueVariableNamesRule.d.mts +1 -0
- package/__dev__/validation/rules/UniqueVariableNamesRule.d.ts +1 -0
- package/__dev__/validation/rules/UniqueVariableNamesRule.js +3 -0
- package/__dev__/validation/rules/UniqueVariableNamesRule.mjs +3 -0
- package/__dev__/validation/rules/ValuesOfCorrectTypeRule.d.mts +1 -0
- package/__dev__/validation/rules/ValuesOfCorrectTypeRule.d.ts +1 -0
- package/__dev__/validation/rules/ValuesOfCorrectTypeRule.js +3 -0
- package/__dev__/validation/rules/ValuesOfCorrectTypeRule.mjs +3 -0
- package/__dev__/validation/rules/VariablesAreInputTypesRule.d.mts +1 -0
- package/__dev__/validation/rules/VariablesAreInputTypesRule.d.ts +1 -0
- package/__dev__/validation/rules/VariablesAreInputTypesRule.js +3 -0
- package/__dev__/validation/rules/VariablesAreInputTypesRule.mjs +3 -0
- package/__dev__/validation/rules/VariablesInAllowedPositionRule.d.mts +1 -0
- package/__dev__/validation/rules/VariablesInAllowedPositionRule.d.ts +1 -0
- package/__dev__/validation/rules/VariablesInAllowedPositionRule.js +3 -0
- package/__dev__/validation/rules/VariablesInAllowedPositionRule.mjs +3 -0
- package/__dev__/validation/rules/custom/NoDeprecatedCustomRule.d.mts +1 -0
- package/__dev__/validation/rules/custom/NoDeprecatedCustomRule.d.ts +1 -0
- package/__dev__/validation/rules/custom/NoDeprecatedCustomRule.js +3 -0
- package/__dev__/validation/rules/custom/NoDeprecatedCustomRule.mjs +3 -0
- package/__dev__/validation/rules/custom/NoSchemaIntrospectionCustomRule.d.mts +1 -0
- package/__dev__/validation/rules/custom/NoSchemaIntrospectionCustomRule.d.ts +1 -0
- package/__dev__/validation/rules/custom/NoSchemaIntrospectionCustomRule.js +3 -0
- package/__dev__/validation/rules/custom/NoSchemaIntrospectionCustomRule.mjs +3 -0
- package/__dev__/validation/specifiedRules.d.mts +1 -0
- package/__dev__/validation/specifiedRules.d.ts +1 -0
- package/__dev__/validation/specifiedRules.js +3 -0
- package/__dev__/validation/specifiedRules.mjs +3 -0
- package/__dev__/validation/validate.d.mts +1 -0
- package/__dev__/validation/validate.d.ts +1 -0
- package/__dev__/validation/validate.js +3 -0
- package/__dev__/validation/validate.mjs +3 -0
- package/__dev__/version.d.mts +1 -0
- package/__dev__/version.d.ts +1 -0
- package/__dev__/version.js +3 -0
- package/__dev__/version.mjs +3 -0
- package/devMode.d.mts +2 -0
- package/devMode.d.ts +2 -0
- package/devMode.js +14 -0
- package/devMode.js.map +1 -0
- package/devMode.mjs +10 -0
- package/devMode.mjs.map +1 -0
- package/error/GraphQLError.d.mts +120 -0
- package/error/ensureGraphQLError.d.mts +5 -0
- package/error/ensureGraphQLError.d.ts +5 -0
- package/error/ensureGraphQLError.js +16 -0
- package/error/ensureGraphQLError.js.map +1 -0
- package/error/ensureGraphQLError.mjs +13 -0
- package/error/ensureGraphQLError.mjs.map +1 -0
- package/error/index.d.mts +4 -0
- package/error/locatedError.d.mts +9 -0
- package/error/syntaxError.d.mts +7 -0
- package/execution/AbortedGraphQLExecutionError.d.mts +6 -0
- package/execution/AbortedGraphQLExecutionError.d.ts +6 -0
- package/execution/AbortedGraphQLExecutionError.js +27 -0
- package/execution/AbortedGraphQLExecutionError.js.map +1 -0
- package/execution/AbortedGraphQLExecutionError.mjs +23 -0
- package/execution/AbortedGraphQLExecutionError.mjs.map +1 -0
- package/execution/AsyncWorkTracker.d.mts +10 -0
- package/execution/AsyncWorkTracker.d.ts +10 -0
- package/execution/AsyncWorkTracker.js +49 -0
- package/execution/AsyncWorkTracker.js.map +1 -0
- package/execution/AsyncWorkTracker.mjs +45 -0
- package/execution/AsyncWorkTracker.mjs.map +1 -0
- package/execution/Executor.d.mts +212 -0
- package/execution/Executor.d.ts +212 -0
- package/execution/Executor.js +655 -0
- package/execution/Executor.js.map +1 -0
- package/execution/Executor.mjs +651 -0
- package/execution/Executor.mjs.map +1 -0
- package/execution/ExecutorThrowingOnIncremental.d.mts +12 -0
- package/execution/ExecutorThrowingOnIncremental.d.ts +12 -0
- package/execution/ExecutorThrowingOnIncremental.js +47 -0
- package/execution/ExecutorThrowingOnIncremental.js.map +1 -0
- package/execution/ExecutorThrowingOnIncremental.mjs +43 -0
- package/execution/ExecutorThrowingOnIncremental.mjs.map +1 -0
- package/execution/cancellablePromise.d.mts +6 -0
- package/execution/cancellablePromise.d.ts +6 -0
- package/execution/cancellablePromise.js +49 -0
- package/execution/cancellablePromise.js.map +1 -0
- package/execution/cancellablePromise.mjs +45 -0
- package/execution/cancellablePromise.mjs.map +1 -0
- package/execution/collectFields.d.mts +59 -0
- package/execution/collectFields.d.ts +15 -4
- package/execution/collectFields.js +57 -22
- package/execution/collectFields.js.map +1 -1
- package/execution/collectFields.mjs +58 -23
- package/execution/collectFields.mjs.map +1 -1
- package/execution/collectIteratorPromises.d.mts +5 -0
- package/execution/collectIteratorPromises.d.ts +5 -0
- package/execution/collectIteratorPromises.js +27 -0
- package/execution/collectIteratorPromises.js.map +1 -0
- package/execution/collectIteratorPromises.mjs +24 -0
- package/execution/collectIteratorPromises.mjs.map +1 -0
- package/execution/createSharedExecutionContext.d.mts +10 -0
- package/execution/createSharedExecutionContext.d.ts +10 -0
- package/execution/createSharedExecutionContext.js +20 -0
- package/execution/createSharedExecutionContext.js.map +1 -0
- package/execution/createSharedExecutionContext.mjs +17 -0
- package/execution/createSharedExecutionContext.mjs.map +1 -0
- package/execution/execute.d.mts +180 -0
- package/execution/execute.d.ts +73 -118
- package/execution/execute.js +218 -1121
- package/execution/execute.js.map +1 -1
- package/execution/execute.mjs +213 -1119
- package/execution/execute.mjs.map +1 -1
- package/execution/getStreamUsage.d.mts +13 -0
- package/execution/getStreamUsage.d.ts +13 -0
- package/execution/getStreamUsage.js +41 -0
- package/execution/getStreamUsage.js.map +1 -0
- package/execution/getStreamUsage.mjs +38 -0
- package/execution/getStreamUsage.mjs.map +1 -0
- package/execution/getVariableSignature.d.mts +18 -0
- package/execution/hooks.d.mts +9 -0
- package/execution/hooks.d.ts +9 -0
- package/execution/hooks.js +24 -0
- package/execution/hooks.js.map +1 -0
- package/execution/hooks.mjs +21 -0
- package/execution/hooks.mjs.map +1 -0
- package/execution/incremental/Computation.d.mts +22 -0
- package/execution/incremental/Computation.d.ts +22 -0
- package/execution/incremental/Computation.js +68 -0
- package/execution/incremental/Computation.js.map +1 -0
- package/execution/incremental/Computation.mjs +64 -0
- package/execution/incremental/Computation.mjs.map +1 -0
- package/execution/incremental/IncrementalExecutor.d.mts +182 -0
- package/execution/incremental/IncrementalExecutor.d.ts +182 -0
- package/execution/incremental/IncrementalExecutor.js +390 -0
- package/execution/incremental/IncrementalExecutor.js.map +1 -0
- package/execution/incremental/IncrementalExecutor.mjs +386 -0
- package/execution/incremental/IncrementalExecutor.mjs.map +1 -0
- package/execution/incremental/IncrementalPublisher.d.mts +17 -0
- package/execution/incremental/IncrementalPublisher.d.ts +17 -0
- package/execution/incremental/IncrementalPublisher.js +201 -0
- package/execution/incremental/IncrementalPublisher.js.map +1 -0
- package/execution/incremental/IncrementalPublisher.mjs +197 -0
- package/execution/incremental/IncrementalPublisher.mjs.map +1 -0
- package/execution/incremental/Queue.d.mts +86 -0
- package/execution/incremental/Queue.d.ts +86 -0
- package/execution/incremental/Queue.js +330 -0
- package/execution/incremental/Queue.js.map +1 -0
- package/execution/incremental/Queue.mjs +325 -0
- package/execution/incremental/Queue.mjs.map +1 -0
- package/execution/incremental/WorkQueue.d.mts +67 -0
- package/execution/incremental/WorkQueue.d.ts +67 -0
- package/execution/incremental/WorkQueue.js +396 -0
- package/execution/incremental/WorkQueue.js.map +1 -0
- package/execution/incremental/WorkQueue.mjs +393 -0
- package/execution/incremental/WorkQueue.mjs.map +1 -0
- package/execution/incremental/buildExecutionPlan.d.mts +7 -0
- package/execution/{buildExecutionPlan.d.ts → incremental/buildExecutionPlan.d.ts} +1 -1
- package/execution/{buildExecutionPlan.js → incremental/buildExecutionPlan.js} +2 -2
- package/execution/incremental/buildExecutionPlan.js.map +1 -0
- package/execution/{buildExecutionPlan.mjs → incremental/buildExecutionPlan.mjs} +2 -2
- package/execution/incremental/buildExecutionPlan.mjs.map +1 -0
- package/execution/index.d.mts +8 -0
- package/execution/index.d.ts +6 -3
- package/execution/index.js +8 -4
- package/execution/index.js.map +1 -1
- package/execution/index.mjs +2 -1
- package/execution/index.mjs.map +1 -1
- package/execution/mapAsyncIterable.d.mts +6 -0
- package/execution/mapAsyncIterable.d.ts +1 -1
- package/execution/mapAsyncIterable.js +28 -51
- package/execution/mapAsyncIterable.js.map +1 -1
- package/execution/mapAsyncIterable.mjs +28 -51
- package/execution/mapAsyncIterable.mjs.map +1 -1
- package/execution/returnIteratorCatchingErrors.d.mts +1 -0
- package/execution/returnIteratorCatchingErrors.d.ts +1 -0
- package/execution/returnIteratorCatchingErrors.js +12 -0
- package/execution/returnIteratorCatchingErrors.js.map +1 -0
- package/execution/returnIteratorCatchingErrors.mjs +9 -0
- package/execution/returnIteratorCatchingErrors.mjs.map +1 -0
- package/execution/values.d.mts +61 -0
- package/execution/values.d.ts +12 -21
- package/execution/values.js +111 -74
- package/execution/values.js.map +1 -1
- package/execution/values.mjs +111 -73
- package/execution/values.mjs.map +1 -1
- package/execution/withConcurrentAbruptClose.d.mts +13 -0
- package/execution/withConcurrentAbruptClose.d.ts +13 -0
- package/execution/withConcurrentAbruptClose.js +72 -0
- package/execution/withConcurrentAbruptClose.js.map +1 -0
- package/execution/withConcurrentAbruptClose.mjs +69 -0
- package/execution/withConcurrentAbruptClose.mjs.map +1 -0
- package/graphql.d.mts +61 -0
- package/graphql.d.ts +9 -16
- package/graphql.js +22 -22
- package/graphql.js.map +1 -1
- package/graphql.mjs +22 -22
- package/graphql.mjs.map +1 -1
- package/harness.d.mts +15 -0
- package/harness.d.ts +15 -0
- package/harness.js +13 -0
- package/harness.js.map +1 -0
- package/harness.mjs +10 -0
- package/harness.mjs.map +1 -0
- package/index.d.mts +51 -0
- package/index.d.ts +10 -7
- package/index.js +25 -8
- package/index.js.map +1 -1
- package/index.mjs +11 -5
- package/index.mjs.map +1 -1
- package/jsutils/AccumulatorMap.d.mts +7 -0
- package/jsutils/AccumulatorMap.js +1 -0
- package/jsutils/AccumulatorMap.js.map +1 -1
- package/jsutils/AccumulatorMap.mjs +1 -0
- package/jsutils/AccumulatorMap.mjs.map +1 -1
- package/jsutils/Maybe.d.mts +2 -0
- package/jsutils/ObjMap.d.mts +18 -0
- package/jsutils/Path.d.mts +14 -0
- package/jsutils/PromiseOrValue.d.mts +1 -0
- package/jsutils/capitalize.d.mts +4 -0
- package/jsutils/devAssert.d.mts +1 -0
- package/jsutils/didYouMean.d.mts +5 -0
- package/jsutils/formatList.d.mts +8 -0
- package/jsutils/formatList.js +2 -1
- package/jsutils/formatList.js.map +1 -1
- package/jsutils/formatList.mjs +2 -1
- package/jsutils/formatList.mjs.map +1 -1
- package/jsutils/getBySet.d.mts +1 -0
- package/jsutils/groupBy.d.mts +4 -0
- package/jsutils/identityFunc.d.mts +4 -0
- package/jsutils/inspect.d.mts +4 -0
- package/jsutils/instanceOf.d.mts +15 -0
- package/jsutils/instanceOf.d.ts +8 -7
- package/jsutils/instanceOf.js +29 -30
- package/jsutils/instanceOf.js.map +1 -1
- package/jsutils/instanceOf.mjs +28 -30
- package/jsutils/instanceOf.mjs.map +1 -1
- package/jsutils/invariant.d.mts +1 -0
- package/jsutils/isAsyncIterable.d.mts +5 -0
- package/jsutils/isIterableObject.d.mts +18 -0
- package/jsutils/isObjectLike.d.mts +7 -0
- package/jsutils/isPromise.d.mts +6 -0
- package/jsutils/isPromise.d.ts +2 -1
- package/jsutils/isPromise.js +5 -1
- package/jsutils/isPromise.js.map +1 -1
- package/jsutils/isPromise.mjs +4 -1
- package/jsutils/isPromise.mjs.map +1 -1
- package/jsutils/isSameSet.d.mts +1 -0
- package/jsutils/keyMap.d.mts +29 -0
- package/jsutils/keyValMap.d.mts +19 -0
- package/jsutils/mapValue.d.mts +6 -0
- package/jsutils/memoize1.d.mts +4 -0
- package/jsutils/memoize1.d.ts +4 -0
- package/jsutils/memoize1.js +19 -0
- package/jsutils/memoize1.js.map +1 -0
- package/jsutils/memoize1.mjs +16 -0
- package/jsutils/memoize1.mjs.map +1 -0
- package/jsutils/memoize2.d.mts +4 -0
- package/jsutils/memoize2.d.ts +4 -0
- package/jsutils/memoize2.js +24 -0
- package/jsutils/memoize2.js.map +1 -0
- package/jsutils/memoize2.mjs +21 -0
- package/jsutils/memoize2.mjs.map +1 -0
- package/jsutils/memoize3.d.mts +4 -0
- package/jsutils/memoize3.js +1 -3
- package/jsutils/memoize3.js.map +1 -1
- package/jsutils/memoize3.mjs +1 -3
- package/jsutils/memoize3.mjs.map +1 -1
- package/jsutils/naturalCompare.d.mts +8 -0
- package/jsutils/printPathArray.d.mts +4 -0
- package/jsutils/promiseForObject.d.mts +10 -0
- package/jsutils/promiseForObject.d.ts +2 -1
- package/jsutils/promiseForObject.js +8 -7
- package/jsutils/promiseForObject.js.map +1 -1
- package/jsutils/promiseForObject.mjs +8 -7
- package/jsutils/promiseForObject.mjs.map +1 -1
- package/jsutils/promiseReduce.d.mts +9 -0
- package/jsutils/promiseWithResolvers.d.mts +10 -0
- package/jsutils/suggestionList.d.mts +5 -0
- package/jsutils/toError.d.mts +4 -0
- package/jsutils/toObjMap.d.mts +4 -0
- package/language/KindTypeMap.d.mts +2 -0
- package/language/KindTypeMap.d.ts +2 -0
- package/language/KindTypeMap.js +3 -0
- package/language/KindTypeMap.js.map +1 -0
- package/language/KindTypeMap.mjs +2 -0
- package/language/KindTypeMap.mjs.map +1 -0
- package/language/ast.d.mts +495 -0
- package/language/ast.d.ts +94 -51
- package/language/ast.js +15 -2
- package/language/ast.js.map +1 -1
- package/language/ast.mjs +15 -2
- package/language/ast.mjs.map +1 -1
- package/language/blockString.d.mts +23 -0
- package/language/characterClasses.d.mts +47 -0
- package/language/directiveLocation.d.mts +28 -0
- package/language/index.d.mts +16 -0
- package/language/index.d.ts +3 -3
- package/language/index.js +7 -2
- package/language/index.js.map +1 -1
- package/language/index.mjs +5 -3
- package/language/index.mjs.map +1 -1
- package/language/kinds.d.mts +3 -0
- package/language/kinds.js +34 -1
- package/language/kinds.js.map +1 -1
- package/language/kinds_.d.mts +109 -0
- package/language/kinds_.d.ts +11 -0
- package/language/kinds_.js +7 -1
- package/language/kinds_.js.map +1 -1
- package/language/kinds_.mjs +6 -0
- package/language/kinds_.mjs.map +1 -1
- package/language/lexer.d.mts +87 -0
- package/language/lexer.d.ts +43 -1
- package/language/lexer.js +10 -0
- package/language/lexer.js.map +1 -1
- package/language/lexer.mjs +10 -3
- package/language/lexer.mjs.map +1 -1
- package/language/location.d.mts +13 -0
- package/language/location.js +2 -1
- package/language/location.js.map +1 -1
- package/language/location.mjs +2 -1
- package/language/location.mjs.map +1 -1
- package/language/parser.d.mts +522 -0
- package/language/parser.d.ts +28 -4
- package/language/parser.js +101 -6
- package/language/parser.js.map +1 -1
- package/language/parser.mjs +100 -6
- package/language/parser.mjs.map +1 -1
- package/language/predicates.d.mts +19 -0
- package/language/predicates.d.ts +9 -1
- package/language/predicates.js +19 -0
- package/language/predicates.js.map +1 -1
- package/language/predicates.mjs +17 -0
- package/language/predicates.mjs.map +1 -1
- package/language/printLocation.d.mts +11 -0
- package/language/printString.d.mts +5 -0
- package/language/printer.d.mts +6 -0
- package/language/printer.js +28 -12
- package/language/printer.js.map +1 -1
- package/language/printer.mjs +28 -12
- package/language/printer.mjs.map +1 -1
- package/language/schemaCoordinateLexer.d.mts +43 -0
- package/language/schemaCoordinateLexer.d.ts +43 -0
- package/language/schemaCoordinateLexer.js +93 -0
- package/language/schemaCoordinateLexer.js.map +1 -0
- package/language/schemaCoordinateLexer.mjs +89 -0
- package/language/schemaCoordinateLexer.mjs.map +1 -0
- package/language/source.d.mts +26 -0
- package/language/source.d.ts +1 -0
- package/language/source.js +7 -3
- package/language/source.js.map +1 -1
- package/language/source.mjs +7 -3
- package/language/source.mjs.map +1 -1
- package/language/tokenKind.d.mts +30 -0
- package/language/tokenKind.d.ts +1 -0
- package/language/tokenKind.js +1 -0
- package/language/tokenKind.js.map +1 -1
- package/language/tokenKind.mjs +1 -0
- package/language/tokenKind.mjs.map +1 -1
- package/language/visitor.d.mts +160 -0
- package/language/visitor.js +3 -2
- package/language/visitor.js.map +1 -1
- package/language/visitor.mjs +3 -2
- package/language/visitor.mjs.map +1 -1
- package/package.json +174 -7
- package/type/assertName.d.mts +10 -0
- package/type/definition.d.mts +933 -0
- package/type/definition.d.ts +58 -16
- package/type/definition.js +53 -28
- package/type/definition.js.map +1 -1
- package/type/definition.mjs +53 -28
- package/type/definition.mjs.map +1 -1
- package/type/directives.d.mts +97 -0
- package/type/directives.d.ts +5 -0
- package/type/directives.js +20 -4
- package/type/directives.js.map +1 -1
- package/type/directives.mjs +19 -3
- package/type/directives.mjs.map +1 -1
- package/type/index.d.mts +12 -0
- package/type/index.d.ts +1 -1
- package/type/index.js.map +1 -1
- package/type/index.mjs.map +1 -1
- package/type/introspection.d.mts +26 -0
- package/type/introspection.d.ts +3 -3
- package/type/introspection.js +9 -7
- package/type/introspection.js.map +1 -1
- package/type/introspection.mjs +9 -7
- package/type/introspection.mjs.map +1 -1
- package/type/scalars.d.mts +19 -0
- package/type/scalars.d.ts +5 -5
- package/type/scalars.js +130 -38
- package/type/scalars.js.map +1 -1
- package/type/scalars.mjs +130 -38
- package/type/scalars.mjs.map +1 -1
- package/type/schema.d.mts +172 -0
- package/type/schema.d.ts +2 -0
- package/type/schema.js +11 -13
- package/type/schema.js.map +1 -1
- package/type/schema.mjs +11 -13
- package/type/schema.mjs.map +1 -1
- package/type/validate.d.mts +21 -0
- package/type/validate.d.ts +6 -0
- package/type/validate.js +48 -30
- package/type/validate.js.map +1 -1
- package/type/validate.mjs +47 -30
- package/type/validate.mjs.map +1 -1
- package/utilities/TypeInfo.d.mts +55 -0
- package/utilities/TypeInfo.js +3 -1
- package/utilities/TypeInfo.js.map +1 -1
- package/utilities/TypeInfo.mjs +3 -1
- package/utilities/TypeInfo.mjs.map +1 -1
- package/utilities/astFromValue.d.mts +27 -0
- package/utilities/astFromValue.d.ts +1 -0
- package/utilities/astFromValue.js +8 -2
- package/utilities/astFromValue.js.map +1 -1
- package/utilities/astFromValue.mjs +8 -2
- package/utilities/astFromValue.mjs.map +1 -1
- package/utilities/buildASTSchema.d.mts +29 -0
- package/utilities/buildClientSchema.d.mts +16 -0
- package/utilities/buildClientSchema.js +10 -6
- package/utilities/buildClientSchema.js.map +1 -1
- package/utilities/buildClientSchema.mjs +9 -6
- package/utilities/buildClientSchema.mjs.map +1 -1
- package/utilities/coerceInputValue.d.mts +34 -0
- package/utilities/coerceInputValue.d.ts +7 -1
- package/utilities/coerceInputValue.js +36 -13
- package/utilities/coerceInputValue.js.map +1 -1
- package/utilities/coerceInputValue.mjs +36 -13
- package/utilities/coerceInputValue.mjs.map +1 -1
- package/utilities/concatAST.d.mts +7 -0
- package/utilities/extendSchema.d.mts +29 -0
- package/utilities/extendSchema.js +2 -1
- package/utilities/extendSchema.js.map +1 -1
- package/utilities/extendSchema.mjs +2 -1
- package/utilities/extendSchema.mjs.map +1 -1
- package/utilities/findSchemaChanges.d.mts +72 -0
- package/utilities/findSchemaChanges.d.ts +18 -18
- package/utilities/findSchemaChanges.js +4 -2
- package/utilities/findSchemaChanges.js.map +1 -1
- package/utilities/findSchemaChanges.mjs +4 -2
- package/utilities/findSchemaChanges.mjs.map +1 -1
- package/utilities/getDefaultValueAST.d.mts +3 -0
- package/utilities/getDefaultValueAST.js +4 -2
- package/utilities/getDefaultValueAST.js.map +1 -1
- package/utilities/getDefaultValueAST.mjs +4 -2
- package/utilities/getDefaultValueAST.mjs.map +1 -1
- package/utilities/getIntrospectionQuery.d.mts +138 -0
- package/utilities/getOperationAST.d.mts +8 -0
- package/utilities/index.d.mts +32 -0
- package/utilities/index.d.ts +2 -0
- package/utilities/index.js +5 -1
- package/utilities/index.js.map +1 -1
- package/utilities/index.mjs +2 -0
- package/utilities/index.mjs.map +1 -1
- package/utilities/introspectionFromSchema.d.mts +12 -0
- package/utilities/introspectionFromSchema.js +2 -1
- package/utilities/introspectionFromSchema.js.map +1 -1
- package/utilities/introspectionFromSchema.mjs +2 -1
- package/utilities/introspectionFromSchema.mjs.map +1 -1
- package/utilities/lexicographicSortSchema.d.mts +7 -0
- package/utilities/mapSchemaConfig.d.mts +66 -0
- package/utilities/mapSchemaConfig.d.ts +1 -1
- package/utilities/mapSchemaConfig.js +6 -3
- package/utilities/mapSchemaConfig.js.map +1 -1
- package/utilities/mapSchemaConfig.mjs +6 -3
- package/utilities/mapSchemaConfig.mjs.map +1 -1
- package/utilities/printSchema.d.mts +7 -0
- package/utilities/printSchema.js +4 -2
- package/utilities/printSchema.js.map +1 -1
- package/utilities/printSchema.mjs +4 -2
- package/utilities/printSchema.mjs.map +1 -1
- package/utilities/replaceVariables.d.mts +13 -0
- package/utilities/replaceVariables.d.ts +2 -1
- package/utilities/replaceVariables.js +17 -8
- package/utilities/replaceVariables.js.map +1 -1
- package/utilities/replaceVariables.mjs +17 -8
- package/utilities/replaceVariables.mjs.map +1 -1
- package/utilities/resolveSchemaCoordinate.d.mts +57 -0
- package/utilities/resolveSchemaCoordinate.d.ts +57 -0
- package/utilities/resolveSchemaCoordinate.js +167 -0
- package/utilities/resolveSchemaCoordinate.js.map +1 -0
- package/utilities/resolveSchemaCoordinate.mjs +163 -0
- package/utilities/resolveSchemaCoordinate.mjs.map +1 -0
- package/utilities/separateOperations.d.mts +9 -0
- package/utilities/sortValueNode.d.mts +9 -0
- package/utilities/stripIgnoredCharacters.d.mts +62 -0
- package/utilities/typeComparators.d.mts +21 -0
- package/utilities/typeFromAST.d.mts +15 -0
- package/utilities/typedQueryDocumentNode.d.mts +17 -0
- package/utilities/validateInputValue.d.mts +19 -0
- package/utilities/validateInputValue.d.ts +2 -1
- package/utilities/validateInputValue.js +42 -17
- package/utilities/validateInputValue.js.map +1 -1
- package/utilities/validateInputValue.mjs +42 -17
- package/utilities/validateInputValue.mjs.map +1 -1
- package/utilities/valueFromAST.d.mts +26 -0
- package/utilities/valueFromAST.js +24 -9
- package/utilities/valueFromAST.js.map +1 -1
- package/utilities/valueFromAST.mjs +24 -9
- package/utilities/valueFromAST.mjs.map +1 -1
- package/utilities/valueFromASTUntyped.d.mts +20 -0
- package/utilities/valueToLiteral.d.mts +31 -0
- package/utilities/valueToLiteral.d.ts +1 -0
- package/utilities/valueToLiteral.js +4 -1
- package/utilities/valueToLiteral.js.map +1 -1
- package/utilities/valueToLiteral.mjs +4 -1
- package/utilities/valueToLiteral.mjs.map +1 -1
- package/validation/ValidationContext.d.mts +70 -0
- package/validation/ValidationContext.js +2 -0
- package/validation/ValidationContext.js.map +1 -1
- package/validation/ValidationContext.mjs +2 -0
- package/validation/ValidationContext.mjs.map +1 -1
- package/validation/index.d.mts +46 -0
- package/validation/rules/DeferStreamDirectiveLabelRule.d.mts +8 -0
- package/validation/rules/DeferStreamDirectiveLabelRule.js +1 -1
- package/validation/rules/DeferStreamDirectiveLabelRule.js.map +1 -1
- package/validation/rules/DeferStreamDirectiveLabelRule.mjs +1 -1
- package/validation/rules/DeferStreamDirectiveLabelRule.mjs.map +1 -1
- package/validation/rules/DeferStreamDirectiveOnRootFieldRule.d.mts +8 -0
- package/validation/rules/DeferStreamDirectiveOnValidOperationsRule.d.mts +8 -0
- package/validation/rules/ExecutableDefinitionsRule.d.mts +11 -0
- package/validation/rules/FieldsOnCorrectTypeRule.d.mts +11 -0
- package/validation/rules/FragmentsOnCompositeTypesRule.d.mts +12 -0
- package/validation/rules/KnownArgumentNamesRule.d.mts +16 -0
- package/validation/rules/KnownDirectivesRule.d.mts +11 -0
- package/validation/rules/KnownDirectivesRule.js +7 -4
- package/validation/rules/KnownDirectivesRule.js.map +1 -1
- package/validation/rules/KnownDirectivesRule.mjs +7 -4
- package/validation/rules/KnownDirectivesRule.mjs.map +1 -1
- package/validation/rules/KnownFragmentNamesRule.d.mts +11 -0
- package/validation/rules/KnownOperationTypesRule.d.mts +11 -0
- package/validation/rules/KnownTypeNamesRule.d.mts +11 -0
- package/validation/rules/LoneAnonymousOperationRule.d.mts +11 -0
- package/validation/rules/LoneSchemaDefinitionRule.d.mts +8 -0
- package/validation/rules/MaxIntrospectionDepthRule.d.mts +3 -0
- package/validation/rules/MaxIntrospectionDepthRule.d.ts +2 -2
- package/validation/rules/MaxIntrospectionDepthRule.js +1 -2
- package/validation/rules/MaxIntrospectionDepthRule.js.map +1 -1
- package/validation/rules/MaxIntrospectionDepthRule.mjs +1 -2
- package/validation/rules/MaxIntrospectionDepthRule.mjs.map +1 -1
- package/validation/rules/NoFragmentCyclesRule.d.mts +11 -0
- package/validation/rules/NoUndefinedVariablesRule.d.mts +11 -0
- package/validation/rules/NoUnusedFragmentsRule.d.mts +11 -0
- package/validation/rules/NoUnusedVariablesRule.d.mts +11 -0
- package/validation/rules/OverlappingFieldsCanBeMergedRule.d.mts +12 -0
- package/validation/rules/OverlappingFieldsCanBeMergedRule.js +15 -14
- package/validation/rules/OverlappingFieldsCanBeMergedRule.js.map +1 -1
- package/validation/rules/OverlappingFieldsCanBeMergedRule.mjs +15 -14
- package/validation/rules/OverlappingFieldsCanBeMergedRule.mjs.map +1 -1
- package/validation/rules/PossibleFragmentSpreadsRule.d.mts +10 -0
- package/validation/rules/PossibleTypeExtensionsRule.d.mts +8 -0
- package/validation/rules/PossibleTypeExtensionsRule.js +5 -3
- package/validation/rules/PossibleTypeExtensionsRule.js.map +1 -1
- package/validation/rules/PossibleTypeExtensionsRule.mjs +5 -3
- package/validation/rules/PossibleTypeExtensionsRule.mjs.map +1 -1
- package/validation/rules/ProvidedRequiredArgumentsRule.d.mts +13 -0
- package/validation/rules/ScalarLeafsRule.d.mts +9 -0
- package/validation/rules/SingleFieldSubscriptionsRule.d.mts +12 -0
- package/validation/rules/SingleFieldSubscriptionsRule.d.ts +2 -1
- package/validation/rules/SingleFieldSubscriptionsRule.js +9 -2
- package/validation/rules/SingleFieldSubscriptionsRule.js.map +1 -1
- package/validation/rules/SingleFieldSubscriptionsRule.mjs +9 -2
- package/validation/rules/SingleFieldSubscriptionsRule.mjs.map +1 -1
- package/validation/rules/StreamDirectiveOnListFieldRule.d.mts +8 -0
- package/validation/rules/UniqueArgumentDefinitionNamesRule.d.mts +9 -0
- package/validation/rules/UniqueArgumentNamesRule.d.mts +11 -0
- package/validation/rules/UniqueDirectiveNamesRule.d.mts +8 -0
- package/validation/rules/UniqueDirectivesPerLocationRule.d.mts +11 -0
- package/validation/rules/UniqueEnumValueNamesRule.d.mts +8 -0
- package/validation/rules/UniqueFieldDefinitionNamesRule.d.mts +8 -0
- package/validation/rules/UniqueFragmentNamesRule.d.mts +10 -0
- package/validation/rules/UniqueInputFieldNamesRule.d.mts +11 -0
- package/validation/rules/UniqueInputFieldNamesRule.js +2 -1
- package/validation/rules/UniqueInputFieldNamesRule.js.map +1 -1
- package/validation/rules/UniqueInputFieldNamesRule.mjs +2 -1
- package/validation/rules/UniqueInputFieldNamesRule.mjs.map +1 -1
- package/validation/rules/UniqueOperationNamesRule.d.mts +10 -0
- package/validation/rules/UniqueOperationTypesRule.d.mts +8 -0
- package/validation/rules/UniqueTypeNamesRule.d.mts +8 -0
- package/validation/rules/UniqueVariableNamesRule.d.mts +8 -0
- package/validation/rules/ValuesOfCorrectTypeRule.d.mts +11 -0
- package/validation/rules/ValuesOfCorrectTypeRule.js +5 -0
- package/validation/rules/ValuesOfCorrectTypeRule.js.map +1 -1
- package/validation/rules/ValuesOfCorrectTypeRule.mjs +5 -0
- package/validation/rules/ValuesOfCorrectTypeRule.mjs.map +1 -1
- package/validation/rules/VariablesAreInputTypesRule.d.mts +11 -0
- package/validation/rules/VariablesInAllowedPositionRule.d.mts +10 -0
- package/validation/rules/VariablesInAllowedPositionRule.js +1 -3
- package/validation/rules/VariablesInAllowedPositionRule.js.map +1 -1
- package/validation/rules/VariablesInAllowedPositionRule.mjs +1 -3
- package/validation/rules/VariablesInAllowedPositionRule.mjs.map +1 -1
- package/validation/rules/custom/NoDeprecatedCustomRule.d.mts +13 -0
- package/validation/rules/custom/NoSchemaIntrospectionCustomRule.d.mts +13 -0
- package/validation/specifiedRules.d.mts +17 -0
- package/validation/specifiedRules.d.ts +1 -2
- package/validation/specifiedRules.js +3 -1
- package/validation/specifiedRules.js.map +1 -1
- package/validation/specifiedRules.mjs +3 -1
- package/validation/specifiedRules.mjs.map +1 -1
- package/validation/validate.d.mts +48 -0
- package/validation/validate.d.ts +5 -4
- package/validation/validate.js +10 -5
- package/validation/validate.js.map +1 -1
- package/validation/validate.mjs +10 -5
- package/validation/validate.mjs.map +1 -1
- package/version.d.mts +13 -0
- package/version.js +2 -2
- package/version.js.map +1 -1
- package/version.mjs +2 -2
- package/version.mjs.map +1 -1
- package/execution/AbortSignalListener.d.ts +0 -17
- package/execution/AbortSignalListener.js +0 -71
- package/execution/AbortSignalListener.js.map +0 -1
- package/execution/AbortSignalListener.mjs +0 -65
- package/execution/AbortSignalListener.mjs.map +0 -1
- package/execution/IncrementalGraph.d.ts +0 -29
- package/execution/IncrementalGraph.js +0 -232
- package/execution/IncrementalGraph.js.map +0 -1
- package/execution/IncrementalGraph.mjs +0 -228
- package/execution/IncrementalGraph.mjs.map +0 -1
- package/execution/IncrementalPublisher.d.ts +0 -10
- package/execution/IncrementalPublisher.js +0 -259
- package/execution/IncrementalPublisher.js.map +0 -1
- package/execution/IncrementalPublisher.mjs +0 -256
- package/execution/IncrementalPublisher.mjs.map +0 -1
- package/execution/buildExecutionPlan.js.map +0 -1
- package/execution/buildExecutionPlan.mjs.map +0 -1
- package/execution/types.d.ts +0 -161
- package/execution/types.js +0 -36
- package/execution/types.js.map +0 -1
- package/execution/types.mjs +0 -27
- package/execution/types.mjs.map +0 -1
- package/jsutils/BoxedPromiseOrValue.d.ts +0 -15
- package/jsutils/BoxedPromiseOrValue.js +0 -27
- package/jsutils/BoxedPromiseOrValue.js.map +0 -1
- package/jsutils/BoxedPromiseOrValue.mjs +0 -23
- package/jsutils/BoxedPromiseOrValue.mjs.map +0 -1
|
@@ -0,0 +1,933 @@
|
|
|
1
|
+
import type { Maybe } from '../jsutils/Maybe.js';
|
|
2
|
+
import type { ObjMap } from '../jsutils/ObjMap.js';
|
|
3
|
+
import type { Path } from '../jsutils/Path.js';
|
|
4
|
+
import type { PromiseOrValue } from '../jsutils/PromiseOrValue.js';
|
|
5
|
+
import type { ConstValueNode, EnumTypeDefinitionNode, EnumTypeExtensionNode, EnumValueDefinitionNode, FieldDefinitionNode, FieldNode, FragmentDefinitionNode, InputObjectTypeDefinitionNode, InputObjectTypeExtensionNode, InputValueDefinitionNode, InterfaceTypeDefinitionNode, InterfaceTypeExtensionNode, ObjectTypeDefinitionNode, ObjectTypeExtensionNode, OperationDefinitionNode, ScalarTypeDefinitionNode, ScalarTypeExtensionNode, UnionTypeDefinitionNode, UnionTypeExtensionNode, ValueNode } from '../language/ast.js';
|
|
6
|
+
import type { GraphQLVariableSignature } from '../execution/getVariableSignature.js';
|
|
7
|
+
import type { VariableValues } from '../execution/values.js';
|
|
8
|
+
import type { GraphQLDirective } from './directives.js';
|
|
9
|
+
import type { GraphQLSchema } from './schema.js';
|
|
10
|
+
/**
|
|
11
|
+
* These are all of the possible kinds of types.
|
|
12
|
+
*/
|
|
13
|
+
export type GraphQLType = GraphQLNamedType | GraphQLWrappingType;
|
|
14
|
+
export declare function isType(type: unknown): type is GraphQLType;
|
|
15
|
+
export declare function assertType(type: unknown): GraphQLType;
|
|
16
|
+
/**
|
|
17
|
+
* There are predicates for each GraphQL schema element.
|
|
18
|
+
*/
|
|
19
|
+
export declare function isScalarType(type: unknown): type is GraphQLScalarType;
|
|
20
|
+
export declare function assertScalarType(type: unknown): GraphQLScalarType;
|
|
21
|
+
declare const objectSymbol: unique symbol;
|
|
22
|
+
export declare function isObjectType(type: unknown): type is GraphQLObjectType;
|
|
23
|
+
export declare function assertObjectType(type: unknown): GraphQLObjectType;
|
|
24
|
+
export declare function isField(field: unknown): field is GraphQLField;
|
|
25
|
+
export declare function assertField(field: unknown): GraphQLField;
|
|
26
|
+
export declare function isArgument(arg: unknown): arg is GraphQLArgument;
|
|
27
|
+
export declare function assertArgument(arg: unknown): GraphQLArgument;
|
|
28
|
+
export declare function isInterfaceType(type: unknown): type is GraphQLInterfaceType;
|
|
29
|
+
export declare function assertInterfaceType(type: unknown): GraphQLInterfaceType;
|
|
30
|
+
export declare function isUnionType(type: unknown): type is GraphQLUnionType;
|
|
31
|
+
export declare function assertUnionType(type: unknown): GraphQLUnionType;
|
|
32
|
+
export declare function isEnumType(type: unknown): type is GraphQLEnumType;
|
|
33
|
+
export declare function assertEnumType(type: unknown): GraphQLEnumType;
|
|
34
|
+
export declare function isEnumValue(value: unknown): value is GraphQLEnumValue;
|
|
35
|
+
export declare function assertEnumValue(value: unknown): GraphQLEnumValue;
|
|
36
|
+
export declare function isInputObjectType(type: unknown): type is GraphQLInputObjectType;
|
|
37
|
+
export declare function assertInputObjectType(type: unknown): GraphQLInputObjectType;
|
|
38
|
+
export declare function isInputField(field: unknown): field is GraphQLInputField;
|
|
39
|
+
export declare function assertInputField(field: unknown): GraphQLInputField;
|
|
40
|
+
export declare function isListType(type: GraphQLInputType): type is GraphQLList<GraphQLInputType>;
|
|
41
|
+
export declare function isListType(type: GraphQLOutputType): type is GraphQLList<GraphQLOutputType>;
|
|
42
|
+
export declare function isListType(type: unknown): type is GraphQLList<GraphQLType>;
|
|
43
|
+
export declare function assertListType(type: unknown): GraphQLList<GraphQLType>;
|
|
44
|
+
export declare function isNonNullType(type: GraphQLInputType): type is GraphQLNonNull<GraphQLNullableInputType>;
|
|
45
|
+
export declare function isNonNullType(type: GraphQLOutputType): type is GraphQLNonNull<GraphQLNullableOutputType>;
|
|
46
|
+
export declare function isNonNullType(type: unknown): type is GraphQLNonNull<GraphQLNullableType>;
|
|
47
|
+
export declare function assertNonNullType(type: unknown): GraphQLNonNull<GraphQLNullableType>;
|
|
48
|
+
/**
|
|
49
|
+
* These types may be used as input types for arguments and directives.
|
|
50
|
+
*/
|
|
51
|
+
export type GraphQLNullableInputType = GraphQLNamedInputType | GraphQLList<GraphQLInputType>;
|
|
52
|
+
export type GraphQLInputType = GraphQLNullableInputType | GraphQLNonNull<GraphQLNullableInputType>;
|
|
53
|
+
export declare function isInputType(type: unknown): type is GraphQLInputType;
|
|
54
|
+
export declare function assertInputType(type: unknown): GraphQLInputType;
|
|
55
|
+
/**
|
|
56
|
+
* These types may be used as output types as the result of fields.
|
|
57
|
+
*/
|
|
58
|
+
export type GraphQLNullableOutputType = GraphQLNamedOutputType | GraphQLList<GraphQLOutputType>;
|
|
59
|
+
export type GraphQLOutputType = GraphQLNullableOutputType | GraphQLNonNull<GraphQLNullableOutputType>;
|
|
60
|
+
export declare function isOutputType(type: unknown): type is GraphQLOutputType;
|
|
61
|
+
export declare function assertOutputType(type: unknown): GraphQLOutputType;
|
|
62
|
+
/**
|
|
63
|
+
* These types may describe types which may be leaf values.
|
|
64
|
+
*/
|
|
65
|
+
export type GraphQLLeafType = GraphQLScalarType | GraphQLEnumType;
|
|
66
|
+
export declare function isLeafType(type: unknown): type is GraphQLLeafType;
|
|
67
|
+
export declare function assertLeafType(type: unknown): GraphQLLeafType;
|
|
68
|
+
/**
|
|
69
|
+
* These types may describe the parent context of a selection set.
|
|
70
|
+
*/
|
|
71
|
+
export type GraphQLCompositeType = GraphQLObjectType | GraphQLInterfaceType | GraphQLUnionType;
|
|
72
|
+
export declare function isCompositeType(type: unknown): type is GraphQLCompositeType;
|
|
73
|
+
export declare function assertCompositeType(type: unknown): GraphQLCompositeType;
|
|
74
|
+
/**
|
|
75
|
+
* These types may describe the parent context of a selection set.
|
|
76
|
+
*/
|
|
77
|
+
export type GraphQLAbstractType = GraphQLInterfaceType | GraphQLUnionType;
|
|
78
|
+
export declare function isAbstractType(type: unknown): type is GraphQLAbstractType;
|
|
79
|
+
export declare function assertAbstractType(type: unknown): GraphQLAbstractType;
|
|
80
|
+
/**
|
|
81
|
+
* List Type Wrapper
|
|
82
|
+
*
|
|
83
|
+
* A list is a wrapping type which points to another type.
|
|
84
|
+
* Lists are often created within the context of defining the fields of
|
|
85
|
+
* an object type.
|
|
86
|
+
*
|
|
87
|
+
* Example:
|
|
88
|
+
*
|
|
89
|
+
* ```ts
|
|
90
|
+
* const PersonType = new GraphQLObjectType({
|
|
91
|
+
* name: 'Person',
|
|
92
|
+
* fields: () => ({
|
|
93
|
+
* parents: { type: new GraphQLList(PersonType) },
|
|
94
|
+
* children: { type: new GraphQLList(PersonType) },
|
|
95
|
+
* })
|
|
96
|
+
* })
|
|
97
|
+
* ```
|
|
98
|
+
*/
|
|
99
|
+
export declare class GraphQLList<T extends GraphQLType> implements GraphQLSchemaElement {
|
|
100
|
+
readonly __kind: symbol;
|
|
101
|
+
readonly ofType: T;
|
|
102
|
+
constructor(ofType: T);
|
|
103
|
+
get [Symbol.toStringTag](): string;
|
|
104
|
+
toString(): string;
|
|
105
|
+
toJSON(): string;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Non-Null Type Wrapper
|
|
109
|
+
*
|
|
110
|
+
* A non-null is a wrapping type which points to another type.
|
|
111
|
+
* Non-null types enforce that their values are never null and can ensure
|
|
112
|
+
* an error is raised if this ever occurs during a request. It is useful for
|
|
113
|
+
* fields which you can make a strong guarantee on non-nullability, for example
|
|
114
|
+
* usually the id field of a database row will never be null.
|
|
115
|
+
*
|
|
116
|
+
* Example:
|
|
117
|
+
*
|
|
118
|
+
* ```ts
|
|
119
|
+
* const RowType = new GraphQLObjectType({
|
|
120
|
+
* name: 'Row',
|
|
121
|
+
* fields: () => ({
|
|
122
|
+
* id: { type: new GraphQLNonNull(GraphQLString) },
|
|
123
|
+
* })
|
|
124
|
+
* })
|
|
125
|
+
* ```
|
|
126
|
+
* Note: the enforcement of non-nullability occurs within the executor.
|
|
127
|
+
*/
|
|
128
|
+
export declare class GraphQLNonNull<T extends GraphQLNullableType> implements GraphQLSchemaElement {
|
|
129
|
+
readonly __kind: symbol;
|
|
130
|
+
readonly ofType: T;
|
|
131
|
+
constructor(ofType: T);
|
|
132
|
+
get [Symbol.toStringTag](): string;
|
|
133
|
+
toString(): string;
|
|
134
|
+
toJSON(): string;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* These types wrap and modify other types
|
|
138
|
+
*/
|
|
139
|
+
export type GraphQLWrappingType = GraphQLList<GraphQLType> | GraphQLNonNull<GraphQLNullableType>;
|
|
140
|
+
export declare function isWrappingType(type: unknown): type is GraphQLWrappingType;
|
|
141
|
+
export declare function assertWrappingType(type: unknown): GraphQLWrappingType;
|
|
142
|
+
/**
|
|
143
|
+
* These types can all accept null as a value.
|
|
144
|
+
*/
|
|
145
|
+
export type GraphQLNullableType = GraphQLNamedType | GraphQLList<GraphQLType>;
|
|
146
|
+
export declare function isNullableType(type: unknown): type is GraphQLNullableType;
|
|
147
|
+
export declare function assertNullableType(type: unknown): GraphQLNullableType;
|
|
148
|
+
export declare function getNullableType(type: undefined | null): void;
|
|
149
|
+
export declare function getNullableType<T extends GraphQLNullableType>(type: T | GraphQLNonNull<T>): T;
|
|
150
|
+
export declare function getNullableType(type: Maybe<GraphQLType>): GraphQLNullableType | undefined;
|
|
151
|
+
/**
|
|
152
|
+
* These named types do not include modifiers like List or NonNull.
|
|
153
|
+
*/
|
|
154
|
+
export type GraphQLNamedType = GraphQLNamedInputType | GraphQLNamedOutputType;
|
|
155
|
+
export type GraphQLNamedInputType = GraphQLScalarType | GraphQLEnumType | GraphQLInputObjectType;
|
|
156
|
+
export type GraphQLNamedOutputType = GraphQLScalarType | GraphQLObjectType | GraphQLInterfaceType | GraphQLUnionType | GraphQLEnumType;
|
|
157
|
+
export declare function isNamedType(type: unknown): type is GraphQLNamedType;
|
|
158
|
+
export declare function assertNamedType(type: unknown): GraphQLNamedType;
|
|
159
|
+
export declare function getNamedType(type: undefined | null): void;
|
|
160
|
+
export declare function getNamedType(type: GraphQLInputType): GraphQLNamedInputType;
|
|
161
|
+
export declare function getNamedType(type: GraphQLOutputType): GraphQLNamedOutputType;
|
|
162
|
+
export declare function getNamedType(type: GraphQLType): GraphQLNamedType;
|
|
163
|
+
export declare function getNamedType(type: Maybe<GraphQLType>): GraphQLNamedType | undefined;
|
|
164
|
+
/**
|
|
165
|
+
* An interface for all Schema Elements.
|
|
166
|
+
*/
|
|
167
|
+
export interface GraphQLSchemaElement {
|
|
168
|
+
toString: () => string;
|
|
169
|
+
toJSON: () => string;
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Used while defining GraphQL types to allow for circular references in
|
|
173
|
+
* otherwise immutable type definitions.
|
|
174
|
+
*/
|
|
175
|
+
export type ThunkReadonlyArray<T> = (() => ReadonlyArray<T>) | ReadonlyArray<T>;
|
|
176
|
+
export type ThunkObjMap<T> = (() => ObjMap<T>) | ObjMap<T>;
|
|
177
|
+
export declare function resolveReadonlyArrayThunk<T>(thunk: ThunkReadonlyArray<T>): ReadonlyArray<T>;
|
|
178
|
+
export declare function resolveObjMapThunk<T>(thunk: ThunkObjMap<T>): ObjMap<T>;
|
|
179
|
+
/**
|
|
180
|
+
* Custom extensions
|
|
181
|
+
*
|
|
182
|
+
* @remarks
|
|
183
|
+
* Use a unique identifier name for your extension, for example the name of
|
|
184
|
+
* your library or project. Do not use a shortened identifier as this increases
|
|
185
|
+
* the risk of conflicts. We recommend you add at most one extension field,
|
|
186
|
+
* an object which can contain all the values you need.
|
|
187
|
+
*/
|
|
188
|
+
export interface GraphQLScalarTypeExtensions {
|
|
189
|
+
[attributeName: string | symbol]: unknown;
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Scalar Type Definition
|
|
193
|
+
*
|
|
194
|
+
* The leaf values of any request and input values to arguments are
|
|
195
|
+
* Scalars (or Enums) and are defined with a name and a series of functions
|
|
196
|
+
* used to parse input from ast or variables and to ensure validity.
|
|
197
|
+
*
|
|
198
|
+
* If a type's coerceOutputValue function returns `null` or does not return a
|
|
199
|
+
* value (i.e. it returns `undefined`) then an error will be raised and a
|
|
200
|
+
* `null` value will be returned in the response. It is always better to
|
|
201
|
+
* validate.
|
|
202
|
+
*
|
|
203
|
+
* Example:
|
|
204
|
+
*
|
|
205
|
+
* ```ts
|
|
206
|
+
* function ensureOdd(value) {
|
|
207
|
+
* if (!Number.isFinite(value)) {
|
|
208
|
+
* throw new Error(
|
|
209
|
+
* `Scalar "Odd" cannot represent "${value}" since it is not a finite number.`,
|
|
210
|
+
* );
|
|
211
|
+
* }
|
|
212
|
+
*
|
|
213
|
+
* if (value % 2 === 0) {
|
|
214
|
+
* throw new Error(`Scalar "Odd" cannot represent "${value}" since it is even.`);
|
|
215
|
+
* }
|
|
216
|
+
* }
|
|
217
|
+
*
|
|
218
|
+
* const OddType = new GraphQLScalarType({
|
|
219
|
+
* name: 'Odd',
|
|
220
|
+
* coerceOutputValue(value) {
|
|
221
|
+
* return ensureOdd(value);
|
|
222
|
+
* },
|
|
223
|
+
* coerceInputValue(value) {
|
|
224
|
+
* return ensureOdd(value);
|
|
225
|
+
* }
|
|
226
|
+
* valueToLiteral(value) {
|
|
227
|
+
* return parse(`${ensureOdd(value)`);
|
|
228
|
+
* }
|
|
229
|
+
* });
|
|
230
|
+
* ```
|
|
231
|
+
*
|
|
232
|
+
* Custom scalars behavior is defined via the following functions:
|
|
233
|
+
*
|
|
234
|
+
* - coerceOutputValue(value): Implements "Result Coercion". Given an internal value,
|
|
235
|
+
* produces an external value valid for this type. Returns undefined or
|
|
236
|
+
* throws an error to indicate invalid values.
|
|
237
|
+
*
|
|
238
|
+
* - coerceInputValue(value): Implements "Input Coercion" for values. Given an
|
|
239
|
+
* external value (for example, variable values), produces an internal value
|
|
240
|
+
* valid for this type. Returns undefined or throws an error to indicate
|
|
241
|
+
* invalid values.
|
|
242
|
+
*
|
|
243
|
+
* - coerceInputLiteral(ast): Implements "Input Coercion" for constant literals.
|
|
244
|
+
* Given an GraphQL literal (AST) (for example, an argument value), produces
|
|
245
|
+
* an internal value valid for this type. Returns undefined or throws an
|
|
246
|
+
* error to indicate invalid values.
|
|
247
|
+
*
|
|
248
|
+
* - valueToLiteral(value): Converts an external value to a GraphQL
|
|
249
|
+
* literal (AST). Returns undefined or throws an error to indicate
|
|
250
|
+
* invalid values.
|
|
251
|
+
*
|
|
252
|
+
* Deprecated, to be removed in v18:
|
|
253
|
+
*
|
|
254
|
+
* - serialize(value): Implements "Result Coercion". Renamed to
|
|
255
|
+
* `coerceOutputValue()`.
|
|
256
|
+
*
|
|
257
|
+
* - parseValue(value): Implements "Input Coercion" for values. Renamed to
|
|
258
|
+
* `coerceInputValue()`.
|
|
259
|
+
*
|
|
260
|
+
* - parseLiteral(ast): Implements "Input Coercion" for literals including
|
|
261
|
+
* non-specified replacement of variables embedded within complex scalars.
|
|
262
|
+
* Replaced by the combination of the `replaceVariables()` utility and the
|
|
263
|
+
* `coerceInputLiteral()` method.
|
|
264
|
+
*
|
|
265
|
+
*/
|
|
266
|
+
export declare class GraphQLScalarType<TInternal = unknown, TExternal = TInternal> implements GraphQLSchemaElement {
|
|
267
|
+
readonly __kind: symbol;
|
|
268
|
+
name: string;
|
|
269
|
+
description: Maybe<string>;
|
|
270
|
+
specifiedByURL: Maybe<string>;
|
|
271
|
+
/** @deprecated use `coerceOutputValue()` instead, `serialize()` will be removed in v18 */
|
|
272
|
+
serialize: GraphQLScalarSerializer<TExternal>;
|
|
273
|
+
/** @deprecated use `coerceInputValue()` instead, `parseValue()` will be removed in v18 */
|
|
274
|
+
parseValue: GraphQLScalarValueParser<TInternal>;
|
|
275
|
+
/** @deprecated use `replaceVariables()` and `coerceInputLiteral()` instead, `parseLiteral()` will be removed in v18 */
|
|
276
|
+
parseLiteral: GraphQLScalarLiteralParser<TInternal>;
|
|
277
|
+
coerceOutputValue: GraphQLScalarOutputValueCoercer<TExternal>;
|
|
278
|
+
coerceInputValue: GraphQLScalarInputValueCoercer<TInternal>;
|
|
279
|
+
coerceInputLiteral: GraphQLScalarInputLiteralCoercer<TInternal> | undefined;
|
|
280
|
+
valueToLiteral: GraphQLScalarValueToLiteral | undefined;
|
|
281
|
+
extensions: Readonly<GraphQLScalarTypeExtensions>;
|
|
282
|
+
astNode: Maybe<ScalarTypeDefinitionNode>;
|
|
283
|
+
extensionASTNodes: ReadonlyArray<ScalarTypeExtensionNode>;
|
|
284
|
+
constructor(config: Readonly<GraphQLScalarTypeConfig<TInternal, TExternal>>);
|
|
285
|
+
get [Symbol.toStringTag](): string;
|
|
286
|
+
toConfig(): GraphQLScalarTypeNormalizedConfig<TInternal, TExternal>;
|
|
287
|
+
toString(): string;
|
|
288
|
+
toJSON(): string;
|
|
289
|
+
}
|
|
290
|
+
export type GraphQLScalarSerializer<TExternal> = (outputValue: unknown) => TExternal;
|
|
291
|
+
export type GraphQLScalarOutputValueCoercer<TExternal> = (outputValue: unknown) => TExternal;
|
|
292
|
+
export type GraphQLScalarValueParser<TInternal> = (inputValue: unknown) => TInternal;
|
|
293
|
+
export type GraphQLScalarInputValueCoercer<TInternal> = (inputValue: unknown) => TInternal;
|
|
294
|
+
export type GraphQLScalarLiteralParser<TInternal> = (valueNode: ValueNode, variables: Maybe<ObjMap<unknown>>) => Maybe<TInternal>;
|
|
295
|
+
export type GraphQLScalarInputLiteralCoercer<TInternal> = (valueNode: ConstValueNode) => Maybe<TInternal>;
|
|
296
|
+
export type GraphQLScalarValueToLiteral = (inputValue: unknown) => ConstValueNode | undefined;
|
|
297
|
+
export interface GraphQLScalarTypeConfig<TInternal, TExternal> {
|
|
298
|
+
name: string;
|
|
299
|
+
description?: Maybe<string>;
|
|
300
|
+
specifiedByURL?: Maybe<string>;
|
|
301
|
+
/** Serializes an internal value to include in a response. */
|
|
302
|
+
/** @deprecated use `coerceOutputValue()` instead, `serialize()` will be removed in v18 */
|
|
303
|
+
serialize?: GraphQLScalarSerializer<TExternal> | undefined;
|
|
304
|
+
/** Parses an externally provided value to use as an input. */
|
|
305
|
+
/** @deprecated use `coerceInputValue()` instead, `parseValue()` will be removed in v18 */
|
|
306
|
+
parseValue?: GraphQLScalarValueParser<TInternal> | undefined;
|
|
307
|
+
/** Parses an externally provided literal value to use as an input. */
|
|
308
|
+
/** @deprecated use `replaceVariables()` and `coerceInputLiteral()` instead, `parseLiteral()` will be removed in v18 */
|
|
309
|
+
parseLiteral?: GraphQLScalarLiteralParser<TInternal> | undefined;
|
|
310
|
+
/** Coerces an internal value to include in a response. */
|
|
311
|
+
coerceOutputValue?: GraphQLScalarOutputValueCoercer<TExternal> | undefined;
|
|
312
|
+
/** Coerces an externally provided value to use as an input. */
|
|
313
|
+
coerceInputValue?: GraphQLScalarInputValueCoercer<TInternal> | undefined;
|
|
314
|
+
/** Coerces an externally provided const literal value to use as an input. */
|
|
315
|
+
coerceInputLiteral?: GraphQLScalarInputLiteralCoercer<TInternal> | undefined;
|
|
316
|
+
/** Translates an externally provided value to a literal (AST). */
|
|
317
|
+
valueToLiteral?: GraphQLScalarValueToLiteral | undefined;
|
|
318
|
+
extensions?: Maybe<Readonly<GraphQLScalarTypeExtensions>>;
|
|
319
|
+
astNode?: Maybe<ScalarTypeDefinitionNode>;
|
|
320
|
+
extensionASTNodes?: Maybe<ReadonlyArray<ScalarTypeExtensionNode>>;
|
|
321
|
+
}
|
|
322
|
+
export interface GraphQLScalarTypeNormalizedConfig<TInternal, TExternal> extends GraphQLScalarTypeConfig<TInternal, TExternal> {
|
|
323
|
+
serialize: GraphQLScalarSerializer<TExternal>;
|
|
324
|
+
parseValue: GraphQLScalarValueParser<TInternal>;
|
|
325
|
+
parseLiteral: GraphQLScalarLiteralParser<TInternal>;
|
|
326
|
+
coerceOutputValue: GraphQLScalarOutputValueCoercer<TExternal>;
|
|
327
|
+
coerceInputValue: GraphQLScalarInputValueCoercer<TInternal>;
|
|
328
|
+
coerceInputLiteral: GraphQLScalarInputLiteralCoercer<TInternal> | undefined;
|
|
329
|
+
extensions: Readonly<GraphQLScalarTypeExtensions>;
|
|
330
|
+
extensionASTNodes: ReadonlyArray<ScalarTypeExtensionNode>;
|
|
331
|
+
}
|
|
332
|
+
/**
|
|
333
|
+
* Custom extensions
|
|
334
|
+
*
|
|
335
|
+
* @remarks
|
|
336
|
+
* Use a unique identifier name for your extension, for example the name of
|
|
337
|
+
* your library or project. Do not use a shortened identifier as this increases
|
|
338
|
+
* the risk of conflicts. We recommend you add at most one extension field,
|
|
339
|
+
* an object which can contain all the values you need.
|
|
340
|
+
*
|
|
341
|
+
* We've provided these template arguments because this is an open type and
|
|
342
|
+
* you may find them useful.
|
|
343
|
+
*/
|
|
344
|
+
export interface GraphQLObjectTypeExtensions<_TSource = any, _TContext = any> {
|
|
345
|
+
[attributeName: string | symbol]: unknown;
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
* Object Type Definition
|
|
349
|
+
*
|
|
350
|
+
* Almost all of the GraphQL types you define will be object types. Object types
|
|
351
|
+
* have a name, but most importantly describe their fields.
|
|
352
|
+
*
|
|
353
|
+
* Example:
|
|
354
|
+
*
|
|
355
|
+
* ```ts
|
|
356
|
+
* const AddressType = new GraphQLObjectType({
|
|
357
|
+
* name: 'Address',
|
|
358
|
+
* fields: {
|
|
359
|
+
* street: { type: GraphQLString },
|
|
360
|
+
* number: { type: GraphQLInt },
|
|
361
|
+
* formatted: {
|
|
362
|
+
* type: GraphQLString,
|
|
363
|
+
* resolve(obj) {
|
|
364
|
+
* return obj.number + ' ' + obj.street
|
|
365
|
+
* }
|
|
366
|
+
* }
|
|
367
|
+
* }
|
|
368
|
+
* });
|
|
369
|
+
* ```
|
|
370
|
+
*
|
|
371
|
+
* When two types need to refer to each other, or a type needs to refer to
|
|
372
|
+
* itself in a field, you can use a function expression (aka a closure or a
|
|
373
|
+
* thunk) to supply the fields lazily.
|
|
374
|
+
*
|
|
375
|
+
* Example:
|
|
376
|
+
*
|
|
377
|
+
* ```ts
|
|
378
|
+
* const PersonType = new GraphQLObjectType({
|
|
379
|
+
* name: 'Person',
|
|
380
|
+
* fields: () => ({
|
|
381
|
+
* name: { type: GraphQLString },
|
|
382
|
+
* bestFriend: { type: PersonType },
|
|
383
|
+
* })
|
|
384
|
+
* });
|
|
385
|
+
* ```
|
|
386
|
+
*/
|
|
387
|
+
export declare class GraphQLObjectType<TSource = any, TContext = any, TAbstract = any> implements GraphQLSchemaElement {
|
|
388
|
+
readonly __kind: typeof objectSymbol;
|
|
389
|
+
name: string;
|
|
390
|
+
description: Maybe<string>;
|
|
391
|
+
isTypeOf: Maybe<GraphQLIsTypeOfFn<TAbstract, TContext>>;
|
|
392
|
+
extensions: Readonly<GraphQLObjectTypeExtensions<TSource, TContext>>;
|
|
393
|
+
astNode: Maybe<ObjectTypeDefinitionNode>;
|
|
394
|
+
extensionASTNodes: ReadonlyArray<ObjectTypeExtensionNode>;
|
|
395
|
+
private _fields;
|
|
396
|
+
private _interfaces;
|
|
397
|
+
constructor(config: Readonly<GraphQLObjectTypeConfig<TSource, TContext, TAbstract>>);
|
|
398
|
+
get [Symbol.toStringTag](): string;
|
|
399
|
+
getFields(): GraphQLFieldMap<TSource, TContext>;
|
|
400
|
+
getInterfaces(): ReadonlyArray<GraphQLInterfaceType>;
|
|
401
|
+
toConfig(): GraphQLObjectTypeNormalizedConfig<TSource, TContext, TAbstract>;
|
|
402
|
+
toString(): string;
|
|
403
|
+
toJSON(): string;
|
|
404
|
+
}
|
|
405
|
+
export interface GraphQLObjectTypeConfig<TSource, TContext, TAbstract = unknown> {
|
|
406
|
+
name: string;
|
|
407
|
+
description?: Maybe<string>;
|
|
408
|
+
interfaces?: ThunkReadonlyArray<GraphQLInterfaceType> | undefined;
|
|
409
|
+
fields: ThunkObjMap<GraphQLFieldConfig<TSource, TContext>>;
|
|
410
|
+
isTypeOf?: Maybe<GraphQLIsTypeOfFn<TAbstract, TContext>>;
|
|
411
|
+
extensions?: Maybe<Readonly<GraphQLObjectTypeExtensions<TSource, TContext>>>;
|
|
412
|
+
astNode?: Maybe<ObjectTypeDefinitionNode>;
|
|
413
|
+
extensionASTNodes?: Maybe<ReadonlyArray<ObjectTypeExtensionNode>>;
|
|
414
|
+
}
|
|
415
|
+
export interface GraphQLObjectTypeNormalizedConfig<TSource, TContext, TAbstract = unknown> extends GraphQLObjectTypeConfig<TSource, TContext, TAbstract> {
|
|
416
|
+
interfaces: ReadonlyArray<GraphQLInterfaceType>;
|
|
417
|
+
fields: GraphQLFieldNormalizedConfigMap<TSource, TContext>;
|
|
418
|
+
extensions: Readonly<GraphQLObjectTypeExtensions<TSource, TContext>>;
|
|
419
|
+
extensionASTNodes: ReadonlyArray<ObjectTypeExtensionNode>;
|
|
420
|
+
}
|
|
421
|
+
export type GraphQLTypeResolver<TSource, TContext> = (value: TSource, context: TContext, info: GraphQLResolveInfo, abstractType: GraphQLAbstractType) => PromiseOrValue<string | undefined>;
|
|
422
|
+
export type GraphQLIsTypeOfFn<TAbstract, TContext> = (value: TAbstract, context: TContext, info: GraphQLResolveInfo) => PromiseOrValue<boolean>;
|
|
423
|
+
export type GraphQLFieldResolver<TSource, TContext, TArgs = any, TResult = unknown> = (source: TSource, args: TArgs, context: TContext, info: GraphQLResolveInfo) => TResult;
|
|
424
|
+
export interface GraphQLResolveInfoHelpers {
|
|
425
|
+
/**
|
|
426
|
+
* Promise.all wrapper that allows rejected branches to be tracked
|
|
427
|
+
* as execution async work.
|
|
428
|
+
*
|
|
429
|
+
* Intended use: return or await this promise from resolver work.
|
|
430
|
+
* Un-awaited async side effects are an anti-pattern:
|
|
431
|
+
*
|
|
432
|
+
* const { promiseAll } = info.getAsyncHelpers();
|
|
433
|
+
* promiseAll([someAsyncWork(), someOtherAsyncWork()]).catch(() => undefined);
|
|
434
|
+
*
|
|
435
|
+
* In that anti-pattern, tracking starts only after rejection (on a
|
|
436
|
+
* later microtask), so this work is not guaranteed to delay
|
|
437
|
+
* `hooks.asyncWorkFinished`.
|
|
438
|
+
*
|
|
439
|
+
* Use `track(...)` for un-awaited async side effects:
|
|
440
|
+
*
|
|
441
|
+
* const { track } = info.getAsyncHelpers();
|
|
442
|
+
* track([
|
|
443
|
+
* someAsyncWork().catch(() => undefined),
|
|
444
|
+
* someOtherAsyncWork().catch(() => undefined)
|
|
445
|
+
* ]);
|
|
446
|
+
*/
|
|
447
|
+
readonly promiseAll: <T>(values: ReadonlyArray<PromiseLike<T> | T>) => Promise<Array<T>>;
|
|
448
|
+
readonly track: (maybePromises: ReadonlyArray<unknown>) => void;
|
|
449
|
+
}
|
|
450
|
+
export interface GraphQLResolveInfo {
|
|
451
|
+
readonly fieldName: string;
|
|
452
|
+
readonly fieldNodes: ReadonlyArray<FieldNode>;
|
|
453
|
+
readonly returnType: GraphQLOutputType;
|
|
454
|
+
readonly parentType: GraphQLObjectType;
|
|
455
|
+
readonly path: Path;
|
|
456
|
+
readonly schema: GraphQLSchema;
|
|
457
|
+
readonly fragments: ObjMap<FragmentDefinitionNode>;
|
|
458
|
+
readonly rootValue: unknown;
|
|
459
|
+
readonly operation: OperationDefinitionNode;
|
|
460
|
+
readonly variableValues: VariableValues;
|
|
461
|
+
readonly getAbortSignal: () => AbortSignal | undefined;
|
|
462
|
+
readonly getAsyncHelpers: () => GraphQLResolveInfoHelpers;
|
|
463
|
+
}
|
|
464
|
+
/**
|
|
465
|
+
* Custom extensions
|
|
466
|
+
*
|
|
467
|
+
* @remarks
|
|
468
|
+
* Use a unique identifier name for your extension, for example the name of
|
|
469
|
+
* your library or project. Do not use a shortened identifier as this increases
|
|
470
|
+
* the risk of conflicts. We recommend you add at most one extension field,
|
|
471
|
+
* an object which can contain all the values you need.
|
|
472
|
+
*
|
|
473
|
+
* We've provided these template arguments because this is an open type and
|
|
474
|
+
* you may find them useful.
|
|
475
|
+
*/
|
|
476
|
+
export interface GraphQLFieldExtensions<_TSource, _TContext, _TArgs = any> {
|
|
477
|
+
[attributeName: string | symbol]: unknown;
|
|
478
|
+
}
|
|
479
|
+
export interface GraphQLFieldConfig<TSource, TContext, TArgs = any> {
|
|
480
|
+
description?: Maybe<string>;
|
|
481
|
+
type: GraphQLOutputType;
|
|
482
|
+
args?: GraphQLFieldConfigArgumentMap | undefined;
|
|
483
|
+
resolve?: GraphQLFieldResolver<TSource, TContext, TArgs> | undefined;
|
|
484
|
+
subscribe?: GraphQLFieldResolver<TSource, TContext, TArgs> | undefined;
|
|
485
|
+
deprecationReason?: Maybe<string>;
|
|
486
|
+
extensions?: Maybe<Readonly<GraphQLFieldExtensions<TSource, TContext, TArgs>>>;
|
|
487
|
+
astNode?: Maybe<FieldDefinitionNode>;
|
|
488
|
+
}
|
|
489
|
+
export interface GraphQLFieldNormalizedConfig<TSource, TContext, TArgs = any> extends GraphQLFieldConfig<TSource, TContext, TArgs> {
|
|
490
|
+
args: GraphQLFieldNormalizedConfigArgumentMap;
|
|
491
|
+
extensions: Readonly<GraphQLFieldExtensions<TSource, TContext, TArgs>>;
|
|
492
|
+
}
|
|
493
|
+
export type GraphQLFieldConfigArgumentMap = ObjMap<GraphQLArgumentConfig>;
|
|
494
|
+
export type GraphQLFieldNormalizedConfigArgumentMap = ObjMap<GraphQLArgumentNormalizedConfig>;
|
|
495
|
+
/**
|
|
496
|
+
* Custom extensions
|
|
497
|
+
*
|
|
498
|
+
* @remarks
|
|
499
|
+
* Use a unique identifier name for your extension, for example the name of
|
|
500
|
+
* your library or project. Do not use a shortened identifier as this increases
|
|
501
|
+
* the risk of conflicts. We recommend you add at most one extension field,
|
|
502
|
+
* an object which can contain all the values you need.
|
|
503
|
+
*/
|
|
504
|
+
export interface GraphQLArgumentExtensions {
|
|
505
|
+
[attributeName: string | symbol]: unknown;
|
|
506
|
+
}
|
|
507
|
+
export interface GraphQLArgumentConfig {
|
|
508
|
+
description?: Maybe<string>;
|
|
509
|
+
type: GraphQLInputType;
|
|
510
|
+
/** @deprecated use default instead, defaultValue will be removed in v18 **/
|
|
511
|
+
defaultValue?: unknown;
|
|
512
|
+
default?: GraphQLDefaultInput | undefined;
|
|
513
|
+
deprecationReason?: Maybe<string>;
|
|
514
|
+
extensions?: Maybe<Readonly<GraphQLArgumentExtensions>>;
|
|
515
|
+
astNode?: Maybe<InputValueDefinitionNode>;
|
|
516
|
+
}
|
|
517
|
+
export interface GraphQLArgumentNormalizedConfig extends GraphQLArgumentConfig {
|
|
518
|
+
default: GraphQLDefaultInput | undefined;
|
|
519
|
+
extensions: Readonly<GraphQLArgumentExtensions>;
|
|
520
|
+
}
|
|
521
|
+
export type GraphQLFieldConfigMap<TSource, TContext> = ObjMap<GraphQLFieldConfig<TSource, TContext>>;
|
|
522
|
+
export type GraphQLFieldNormalizedConfigMap<TSource, TContext> = ObjMap<GraphQLFieldNormalizedConfig<TSource, TContext>>;
|
|
523
|
+
export declare class GraphQLField<TSource = any, TContext = any, TArgs = any> implements GraphQLSchemaElement {
|
|
524
|
+
readonly __kind: symbol;
|
|
525
|
+
parentType: GraphQLObjectType<TSource, TContext> | GraphQLInterfaceType<TSource, TContext> | undefined;
|
|
526
|
+
name: string;
|
|
527
|
+
description: Maybe<string>;
|
|
528
|
+
type: GraphQLOutputType;
|
|
529
|
+
args: ReadonlyArray<GraphQLArgument>;
|
|
530
|
+
resolve?: GraphQLFieldResolver<TSource, TContext, TArgs> | undefined;
|
|
531
|
+
subscribe?: GraphQLFieldResolver<TSource, TContext, TArgs> | undefined;
|
|
532
|
+
deprecationReason: Maybe<string>;
|
|
533
|
+
extensions: Readonly<GraphQLFieldExtensions<TSource, TContext, TArgs>>;
|
|
534
|
+
astNode: Maybe<FieldDefinitionNode>;
|
|
535
|
+
constructor(parentType: GraphQLObjectType<TSource, TContext> | GraphQLInterfaceType<TSource, TContext> | undefined, name: string, config: GraphQLFieldConfig<TSource, TContext, TArgs>);
|
|
536
|
+
get [Symbol.toStringTag](): string;
|
|
537
|
+
toConfig(): GraphQLFieldNormalizedConfig<TSource, TContext, TArgs>;
|
|
538
|
+
toString(): string;
|
|
539
|
+
toJSON(): string;
|
|
540
|
+
}
|
|
541
|
+
export declare class GraphQLArgument implements GraphQLSchemaElement {
|
|
542
|
+
readonly __kind: symbol;
|
|
543
|
+
parent: GraphQLField | GraphQLDirective;
|
|
544
|
+
name: string;
|
|
545
|
+
description: Maybe<string>;
|
|
546
|
+
type: GraphQLInputType;
|
|
547
|
+
defaultValue: unknown;
|
|
548
|
+
default: GraphQLDefaultInput | undefined;
|
|
549
|
+
deprecationReason: Maybe<string>;
|
|
550
|
+
extensions: Readonly<GraphQLArgumentExtensions>;
|
|
551
|
+
astNode: Maybe<InputValueDefinitionNode>;
|
|
552
|
+
constructor(parent: GraphQLField | GraphQLDirective, name: string, config: GraphQLArgumentConfig);
|
|
553
|
+
get [Symbol.toStringTag](): string;
|
|
554
|
+
toConfig(): GraphQLArgumentNormalizedConfig;
|
|
555
|
+
toString(): string;
|
|
556
|
+
toJSON(): string;
|
|
557
|
+
}
|
|
558
|
+
export declare function isRequiredArgument(arg: GraphQLArgument | GraphQLVariableSignature): boolean;
|
|
559
|
+
export type GraphQLFieldMap<TSource, TContext> = ObjMap<GraphQLField<TSource, TContext>>;
|
|
560
|
+
export type GraphQLDefaultInput = {
|
|
561
|
+
value: unknown;
|
|
562
|
+
literal?: never;
|
|
563
|
+
} | {
|
|
564
|
+
literal: ConstValueNode;
|
|
565
|
+
value?: never;
|
|
566
|
+
};
|
|
567
|
+
/**
|
|
568
|
+
* Custom extensions
|
|
569
|
+
*
|
|
570
|
+
* @remarks
|
|
571
|
+
* Use a unique identifier name for your extension, for example the name of
|
|
572
|
+
* your library or project. Do not use a shortened identifier as this increases
|
|
573
|
+
* the risk of conflicts. We recommend you add at most one extension field,
|
|
574
|
+
* an object which can contain all the values you need.
|
|
575
|
+
*/
|
|
576
|
+
export interface GraphQLInterfaceTypeExtensions {
|
|
577
|
+
[attributeName: string | symbol]: unknown;
|
|
578
|
+
}
|
|
579
|
+
/**
|
|
580
|
+
* Interface Type Definition
|
|
581
|
+
*
|
|
582
|
+
* When a field can return one of a heterogeneous set of types, a Interface type
|
|
583
|
+
* is used to describe what types are possible, what fields are in common across
|
|
584
|
+
* all types, as well as a function to determine which type is actually used
|
|
585
|
+
* when the field is resolved.
|
|
586
|
+
*
|
|
587
|
+
* Example:
|
|
588
|
+
*
|
|
589
|
+
* ```ts
|
|
590
|
+
* const EntityType = new GraphQLInterfaceType({
|
|
591
|
+
* name: 'Entity',
|
|
592
|
+
* fields: {
|
|
593
|
+
* name: { type: GraphQLString }
|
|
594
|
+
* }
|
|
595
|
+
* });
|
|
596
|
+
* ```
|
|
597
|
+
*/
|
|
598
|
+
export declare class GraphQLInterfaceType<TSource = any, TContext = any> implements GraphQLSchemaElement {
|
|
599
|
+
readonly __kind: symbol;
|
|
600
|
+
name: string;
|
|
601
|
+
description: Maybe<string>;
|
|
602
|
+
resolveType: Maybe<GraphQLTypeResolver<TSource, TContext>>;
|
|
603
|
+
extensions: Readonly<GraphQLInterfaceTypeExtensions>;
|
|
604
|
+
astNode: Maybe<InterfaceTypeDefinitionNode>;
|
|
605
|
+
extensionASTNodes: ReadonlyArray<InterfaceTypeExtensionNode>;
|
|
606
|
+
private _fields;
|
|
607
|
+
private _interfaces;
|
|
608
|
+
constructor(config: Readonly<GraphQLInterfaceTypeConfig<TSource, TContext>>);
|
|
609
|
+
get [Symbol.toStringTag](): string;
|
|
610
|
+
getFields(): GraphQLFieldMap<TSource, TContext>;
|
|
611
|
+
getInterfaces(): ReadonlyArray<GraphQLInterfaceType>;
|
|
612
|
+
toConfig(): GraphQLInterfaceTypeNormalizedConfig<TSource, TContext>;
|
|
613
|
+
toString(): string;
|
|
614
|
+
toJSON(): string;
|
|
615
|
+
}
|
|
616
|
+
export interface GraphQLInterfaceTypeConfig<TSource, TContext> {
|
|
617
|
+
name: string;
|
|
618
|
+
description?: Maybe<string>;
|
|
619
|
+
interfaces?: ThunkReadonlyArray<GraphQLInterfaceType> | undefined;
|
|
620
|
+
fields: ThunkObjMap<GraphQLFieldConfig<TSource, TContext>>;
|
|
621
|
+
/**
|
|
622
|
+
* Optionally provide a custom type resolver function. If one is not provided,
|
|
623
|
+
* the default implementation will call `isTypeOf` on each implementing
|
|
624
|
+
* Object type.
|
|
625
|
+
*/
|
|
626
|
+
resolveType?: Maybe<GraphQLTypeResolver<TSource, TContext>>;
|
|
627
|
+
extensions?: Maybe<Readonly<GraphQLInterfaceTypeExtensions>>;
|
|
628
|
+
astNode?: Maybe<InterfaceTypeDefinitionNode>;
|
|
629
|
+
extensionASTNodes?: Maybe<ReadonlyArray<InterfaceTypeExtensionNode>>;
|
|
630
|
+
}
|
|
631
|
+
export interface GraphQLInterfaceTypeNormalizedConfig<TSource, TContext> extends GraphQLInterfaceTypeConfig<TSource, TContext> {
|
|
632
|
+
interfaces: ReadonlyArray<GraphQLInterfaceType>;
|
|
633
|
+
fields: GraphQLFieldNormalizedConfigMap<TSource, TContext>;
|
|
634
|
+
extensions: Readonly<GraphQLInterfaceTypeExtensions>;
|
|
635
|
+
extensionASTNodes: ReadonlyArray<InterfaceTypeExtensionNode>;
|
|
636
|
+
}
|
|
637
|
+
/**
|
|
638
|
+
* Custom extensions
|
|
639
|
+
*
|
|
640
|
+
* @remarks
|
|
641
|
+
* Use a unique identifier name for your extension, for example the name of
|
|
642
|
+
* your library or project. Do not use a shortened identifier as this increases
|
|
643
|
+
* the risk of conflicts. We recommend you add at most one extension field,
|
|
644
|
+
* an object which can contain all the values you need.
|
|
645
|
+
*/
|
|
646
|
+
export interface GraphQLUnionTypeExtensions {
|
|
647
|
+
[attributeName: string | symbol]: unknown;
|
|
648
|
+
}
|
|
649
|
+
/**
|
|
650
|
+
* Union Type Definition
|
|
651
|
+
*
|
|
652
|
+
* When a field can return one of a heterogeneous set of types, a Union type
|
|
653
|
+
* is used to describe what types are possible as well as providing a function
|
|
654
|
+
* to determine which type is actually used when the field is resolved.
|
|
655
|
+
*
|
|
656
|
+
* Example:
|
|
657
|
+
*
|
|
658
|
+
* ```ts
|
|
659
|
+
* const PetType = new GraphQLUnionType({
|
|
660
|
+
* name: 'Pet',
|
|
661
|
+
* types: [ DogType, CatType ],
|
|
662
|
+
* resolveType(value) {
|
|
663
|
+
* if (value instanceof Dog) {
|
|
664
|
+
* return DogType;
|
|
665
|
+
* }
|
|
666
|
+
* if (value instanceof Cat) {
|
|
667
|
+
* return CatType;
|
|
668
|
+
* }
|
|
669
|
+
* }
|
|
670
|
+
* });
|
|
671
|
+
* ```
|
|
672
|
+
*/
|
|
673
|
+
export declare class GraphQLUnionType<TSource = any, TContext = any> implements GraphQLSchemaElement {
|
|
674
|
+
readonly __kind: symbol;
|
|
675
|
+
name: string;
|
|
676
|
+
description: Maybe<string>;
|
|
677
|
+
resolveType: Maybe<GraphQLTypeResolver<TSource, TContext>>;
|
|
678
|
+
extensions: Readonly<GraphQLUnionTypeExtensions>;
|
|
679
|
+
astNode: Maybe<UnionTypeDefinitionNode>;
|
|
680
|
+
extensionASTNodes: ReadonlyArray<UnionTypeExtensionNode>;
|
|
681
|
+
private _types;
|
|
682
|
+
constructor(config: Readonly<GraphQLUnionTypeConfig<TSource, TContext>>);
|
|
683
|
+
get [Symbol.toStringTag](): string;
|
|
684
|
+
getTypes(): ReadonlyArray<GraphQLObjectType>;
|
|
685
|
+
toConfig(): GraphQLUnionTypeNormalizedConfig<TSource, TContext>;
|
|
686
|
+
toString(): string;
|
|
687
|
+
toJSON(): string;
|
|
688
|
+
}
|
|
689
|
+
export interface GraphQLUnionTypeConfig<TSource, TContext> {
|
|
690
|
+
name: string;
|
|
691
|
+
description?: Maybe<string>;
|
|
692
|
+
types: ThunkReadonlyArray<GraphQLObjectType>;
|
|
693
|
+
/**
|
|
694
|
+
* Optionally provide a custom type resolver function. If one is not provided,
|
|
695
|
+
* the default implementation will call `isTypeOf` on each implementing
|
|
696
|
+
* Object type.
|
|
697
|
+
*/
|
|
698
|
+
resolveType?: Maybe<GraphQLTypeResolver<TSource, TContext>>;
|
|
699
|
+
extensions?: Maybe<Readonly<GraphQLUnionTypeExtensions>>;
|
|
700
|
+
astNode?: Maybe<UnionTypeDefinitionNode>;
|
|
701
|
+
extensionASTNodes?: Maybe<ReadonlyArray<UnionTypeExtensionNode>>;
|
|
702
|
+
}
|
|
703
|
+
export interface GraphQLUnionTypeNormalizedConfig<TSource, TContext> extends GraphQLUnionTypeConfig<TSource, TContext> {
|
|
704
|
+
types: ReadonlyArray<GraphQLObjectType>;
|
|
705
|
+
extensions: Readonly<GraphQLUnionTypeExtensions>;
|
|
706
|
+
extensionASTNodes: ReadonlyArray<UnionTypeExtensionNode>;
|
|
707
|
+
}
|
|
708
|
+
/**
|
|
709
|
+
* Custom extensions
|
|
710
|
+
*
|
|
711
|
+
* @remarks
|
|
712
|
+
* Use a unique identifier name for your extension, for example the name of
|
|
713
|
+
* your library or project. Do not use a shortened identifier as this increases
|
|
714
|
+
* the risk of conflicts. We recommend you add at most one extension field,
|
|
715
|
+
* an object which can contain all the values you need.
|
|
716
|
+
*/
|
|
717
|
+
export interface GraphQLEnumTypeExtensions {
|
|
718
|
+
[attributeName: string | symbol]: unknown;
|
|
719
|
+
}
|
|
720
|
+
/**
|
|
721
|
+
* Enum Type Definition
|
|
722
|
+
*
|
|
723
|
+
* Some leaf values of requests and input values are Enums. GraphQL coerces
|
|
724
|
+
* Enum values as strings, however internally Enums can be represented by any
|
|
725
|
+
* kind of type, often integers.
|
|
726
|
+
*
|
|
727
|
+
* Example:
|
|
728
|
+
*
|
|
729
|
+
* ```ts
|
|
730
|
+
* const RGBType = new GraphQLEnumType({
|
|
731
|
+
* name: 'RGB',
|
|
732
|
+
* values: {
|
|
733
|
+
* RED: { value: 0 },
|
|
734
|
+
* GREEN: { value: 1 },
|
|
735
|
+
* BLUE: { value: 2 }
|
|
736
|
+
* }
|
|
737
|
+
* });
|
|
738
|
+
* ```
|
|
739
|
+
*
|
|
740
|
+
* Note: If a value is not provided in a definition, the name of the enum value
|
|
741
|
+
* will be used as its internal value.
|
|
742
|
+
*/
|
|
743
|
+
export declare class GraphQLEnumType/* <T> */ implements GraphQLSchemaElement {
|
|
744
|
+
readonly __kind: symbol;
|
|
745
|
+
name: string;
|
|
746
|
+
description: Maybe<string>;
|
|
747
|
+
extensions: Readonly<GraphQLEnumTypeExtensions>;
|
|
748
|
+
astNode: Maybe<EnumTypeDefinitionNode>;
|
|
749
|
+
extensionASTNodes: ReadonlyArray<EnumTypeExtensionNode>;
|
|
750
|
+
private _values;
|
|
751
|
+
private _valueLookup;
|
|
752
|
+
private _nameLookup;
|
|
753
|
+
constructor(config: Readonly<GraphQLEnumTypeConfig>);
|
|
754
|
+
get [Symbol.toStringTag](): string;
|
|
755
|
+
getValues(): ReadonlyArray<GraphQLEnumValue>;
|
|
756
|
+
getValue(name: string): Maybe<GraphQLEnumValue>;
|
|
757
|
+
/** @deprecated use `coerceOutputValue()` instead, `serialize()` will be removed in v18 */
|
|
758
|
+
serialize(outputValue: unknown): Maybe<string>;
|
|
759
|
+
coerceOutputValue(outputValue: unknown): Maybe<string>;
|
|
760
|
+
/** @deprecated use `coerceInputValue()` instead, `parseValue()` will be removed in v18 */
|
|
761
|
+
parseValue(inputValue: unknown, hideSuggestions?: Maybe<boolean>): Maybe<any>;
|
|
762
|
+
coerceInputValue(inputValue: unknown, hideSuggestions?: Maybe<boolean>): Maybe<any>;
|
|
763
|
+
/** @deprecated use `coerceInputLiteral()` instead, `parseLiteral()` will be removed in v18 */
|
|
764
|
+
parseLiteral(valueNode: ValueNode, _variables: Maybe<ObjMap<unknown>>, hideSuggestions?: Maybe<boolean>): Maybe<any>;
|
|
765
|
+
coerceInputLiteral(valueNode: ConstValueNode, hideSuggestions?: Maybe<boolean>): Maybe<any>;
|
|
766
|
+
valueToLiteral(value: unknown): ConstValueNode | undefined;
|
|
767
|
+
toConfig(): GraphQLEnumTypeNormalizedConfig;
|
|
768
|
+
toString(): string;
|
|
769
|
+
toJSON(): string;
|
|
770
|
+
}
|
|
771
|
+
export interface GraphQLEnumTypeConfig {
|
|
772
|
+
name: string;
|
|
773
|
+
description?: Maybe<string>;
|
|
774
|
+
values: ThunkObjMap<GraphQLEnumValueConfig>;
|
|
775
|
+
extensions?: Maybe<Readonly<GraphQLEnumTypeExtensions>>;
|
|
776
|
+
astNode?: Maybe<EnumTypeDefinitionNode>;
|
|
777
|
+
extensionASTNodes?: Maybe<ReadonlyArray<EnumTypeExtensionNode>>;
|
|
778
|
+
}
|
|
779
|
+
export interface GraphQLEnumTypeNormalizedConfig extends GraphQLEnumTypeConfig {
|
|
780
|
+
values: GraphQLEnumValueNormalizedConfigMap;
|
|
781
|
+
extensions: Readonly<GraphQLEnumTypeExtensions>;
|
|
782
|
+
extensionASTNodes: ReadonlyArray<EnumTypeExtensionNode>;
|
|
783
|
+
}
|
|
784
|
+
export type GraphQLEnumValueConfigMap = ObjMap<GraphQLEnumValueConfig>;
|
|
785
|
+
export type GraphQLEnumValueNormalizedConfigMap = ObjMap<GraphQLEnumValueNormalizedConfig>;
|
|
786
|
+
/**
|
|
787
|
+
* Custom extensions
|
|
788
|
+
*
|
|
789
|
+
* @remarks
|
|
790
|
+
* Use a unique identifier name for your extension, for example the name of
|
|
791
|
+
* your library or project. Do not use a shortened identifier as this increases
|
|
792
|
+
* the risk of conflicts. We recommend you add at most one extension field,
|
|
793
|
+
* an object which can contain all the values you need.
|
|
794
|
+
*/
|
|
795
|
+
export interface GraphQLEnumValueExtensions {
|
|
796
|
+
[attributeName: string | symbol]: unknown;
|
|
797
|
+
}
|
|
798
|
+
export interface GraphQLEnumValueConfig {
|
|
799
|
+
description?: Maybe<string>;
|
|
800
|
+
value?: any;
|
|
801
|
+
deprecationReason?: Maybe<string>;
|
|
802
|
+
extensions?: Maybe<Readonly<GraphQLEnumValueExtensions>>;
|
|
803
|
+
astNode?: Maybe<EnumValueDefinitionNode>;
|
|
804
|
+
}
|
|
805
|
+
export interface GraphQLEnumValueNormalizedConfig extends GraphQLEnumValueConfig {
|
|
806
|
+
extensions: Readonly<GraphQLEnumValueExtensions>;
|
|
807
|
+
}
|
|
808
|
+
export declare class GraphQLEnumValue implements GraphQLSchemaElement {
|
|
809
|
+
readonly __kind: symbol;
|
|
810
|
+
parentEnum: GraphQLEnumType;
|
|
811
|
+
name: string;
|
|
812
|
+
description: Maybe<string>;
|
|
813
|
+
value: any;
|
|
814
|
+
deprecationReason: Maybe<string>;
|
|
815
|
+
extensions: Readonly<GraphQLEnumValueExtensions>;
|
|
816
|
+
astNode: Maybe<EnumValueDefinitionNode>;
|
|
817
|
+
constructor(parentEnum: GraphQLEnumType, name: string, config: GraphQLEnumValueConfig);
|
|
818
|
+
get [Symbol.toStringTag](): string;
|
|
819
|
+
toConfig(): GraphQLEnumValueNormalizedConfig;
|
|
820
|
+
toString(): string;
|
|
821
|
+
toJSON(): string;
|
|
822
|
+
}
|
|
823
|
+
/**
|
|
824
|
+
* Custom extensions
|
|
825
|
+
*
|
|
826
|
+
* @remarks
|
|
827
|
+
* Use a unique identifier name for your extension, for example the name of
|
|
828
|
+
* your library or project. Do not use a shortened identifier as this increases
|
|
829
|
+
* the risk of conflicts. We recommend you add at most one extension field,
|
|
830
|
+
* an object which can contain all the values you need.
|
|
831
|
+
*/
|
|
832
|
+
export interface GraphQLInputObjectTypeExtensions {
|
|
833
|
+
[attributeName: string | symbol]: unknown;
|
|
834
|
+
}
|
|
835
|
+
/**
|
|
836
|
+
* Input Object Type Definition
|
|
837
|
+
*
|
|
838
|
+
* An input object defines a structured collection of fields which may be
|
|
839
|
+
* supplied to a field argument.
|
|
840
|
+
*
|
|
841
|
+
* Using `NonNull` will ensure that a value must be provided by the query
|
|
842
|
+
*
|
|
843
|
+
* Example:
|
|
844
|
+
*
|
|
845
|
+
* ```ts
|
|
846
|
+
* const GeoPoint = new GraphQLInputObjectType({
|
|
847
|
+
* name: 'GeoPoint',
|
|
848
|
+
* fields: {
|
|
849
|
+
* lat: { type: new GraphQLNonNull(GraphQLFloat) },
|
|
850
|
+
* lon: { type: new GraphQLNonNull(GraphQLFloat) },
|
|
851
|
+
* alt: { type: GraphQLFloat, defaultValue: 0 },
|
|
852
|
+
* }
|
|
853
|
+
* });
|
|
854
|
+
* ```
|
|
855
|
+
*/
|
|
856
|
+
export declare class GraphQLInputObjectType implements GraphQLSchemaElement {
|
|
857
|
+
readonly __kind: symbol;
|
|
858
|
+
name: string;
|
|
859
|
+
description: Maybe<string>;
|
|
860
|
+
extensions: Readonly<GraphQLInputObjectTypeExtensions>;
|
|
861
|
+
astNode: Maybe<InputObjectTypeDefinitionNode>;
|
|
862
|
+
extensionASTNodes: ReadonlyArray<InputObjectTypeExtensionNode>;
|
|
863
|
+
isOneOf: boolean;
|
|
864
|
+
private _fields;
|
|
865
|
+
constructor(config: Readonly<GraphQLInputObjectTypeConfig>);
|
|
866
|
+
get [Symbol.toStringTag](): string;
|
|
867
|
+
getFields(): GraphQLInputFieldMap;
|
|
868
|
+
toConfig(): GraphQLInputObjectTypeNormalizedConfig;
|
|
869
|
+
toString(): string;
|
|
870
|
+
toJSON(): string;
|
|
871
|
+
}
|
|
872
|
+
export interface GraphQLInputObjectTypeConfig {
|
|
873
|
+
name: string;
|
|
874
|
+
description?: Maybe<string>;
|
|
875
|
+
fields: ThunkObjMap<GraphQLInputFieldConfig>;
|
|
876
|
+
extensions?: Maybe<Readonly<GraphQLInputObjectTypeExtensions>>;
|
|
877
|
+
astNode?: Maybe<InputObjectTypeDefinitionNode>;
|
|
878
|
+
extensionASTNodes?: Maybe<ReadonlyArray<InputObjectTypeExtensionNode>>;
|
|
879
|
+
isOneOf?: boolean;
|
|
880
|
+
}
|
|
881
|
+
export interface GraphQLInputObjectTypeNormalizedConfig extends GraphQLInputObjectTypeConfig {
|
|
882
|
+
fields: GraphQLInputFieldNormalizedConfigMap;
|
|
883
|
+
extensions: Readonly<GraphQLInputObjectTypeExtensions>;
|
|
884
|
+
extensionASTNodes: ReadonlyArray<InputObjectTypeExtensionNode>;
|
|
885
|
+
}
|
|
886
|
+
/**
|
|
887
|
+
* Custom extensions
|
|
888
|
+
*
|
|
889
|
+
* @remarks
|
|
890
|
+
* Use a unique identifier name for your extension, for example the name of
|
|
891
|
+
* your library or project. Do not use a shortened identifier as this increases
|
|
892
|
+
* the risk of conflicts. We recommend you add at most one extension field,
|
|
893
|
+
* an object which can contain all the values you need.
|
|
894
|
+
*/
|
|
895
|
+
export interface GraphQLInputFieldExtensions {
|
|
896
|
+
[attributeName: string | symbol]: unknown;
|
|
897
|
+
}
|
|
898
|
+
export interface GraphQLInputFieldConfig {
|
|
899
|
+
description?: Maybe<string>;
|
|
900
|
+
type: GraphQLInputType;
|
|
901
|
+
/** @deprecated use default instead, defaultValue will be removed in v18 **/
|
|
902
|
+
defaultValue?: unknown;
|
|
903
|
+
default?: GraphQLDefaultInput | undefined;
|
|
904
|
+
deprecationReason?: Maybe<string>;
|
|
905
|
+
extensions?: Maybe<Readonly<GraphQLInputFieldExtensions>>;
|
|
906
|
+
astNode?: Maybe<InputValueDefinitionNode>;
|
|
907
|
+
}
|
|
908
|
+
export type GraphQLInputFieldConfigMap = ObjMap<GraphQLInputFieldConfig>;
|
|
909
|
+
export interface GraphQLInputFieldNormalizedConfig extends GraphQLInputFieldConfig {
|
|
910
|
+
default: GraphQLDefaultInput | undefined;
|
|
911
|
+
extensions: Readonly<GraphQLInputFieldExtensions>;
|
|
912
|
+
}
|
|
913
|
+
export type GraphQLInputFieldNormalizedConfigMap = ObjMap<GraphQLInputFieldNormalizedConfig>;
|
|
914
|
+
export declare class GraphQLInputField implements GraphQLSchemaElement {
|
|
915
|
+
readonly __kind: symbol;
|
|
916
|
+
parentType: GraphQLInputObjectType;
|
|
917
|
+
name: string;
|
|
918
|
+
description: Maybe<string>;
|
|
919
|
+
type: GraphQLInputType;
|
|
920
|
+
defaultValue: unknown;
|
|
921
|
+
default: GraphQLDefaultInput | undefined;
|
|
922
|
+
deprecationReason: Maybe<string>;
|
|
923
|
+
extensions: Readonly<GraphQLInputFieldExtensions>;
|
|
924
|
+
astNode: Maybe<InputValueDefinitionNode>;
|
|
925
|
+
constructor(parentType: GraphQLInputObjectType, name: string, config: GraphQLInputFieldConfig);
|
|
926
|
+
get [Symbol.toStringTag](): string;
|
|
927
|
+
toConfig(): GraphQLInputFieldNormalizedConfig;
|
|
928
|
+
toString(): string;
|
|
929
|
+
toJSON(): string;
|
|
930
|
+
}
|
|
931
|
+
export declare function isRequiredInputField(field: GraphQLInputField): boolean;
|
|
932
|
+
export type GraphQLInputFieldMap = ObjMap<GraphQLInputField>;
|
|
933
|
+
export {};
|