@graphql-tools/schema
Advanced tools
Comparing version 10.0.0 to 10.0.1-rc-20231121170354-0e80c00a
@@ -101,3 +101,4 @@ "use strict"; | ||
...type.astNode, | ||
description: resolverValue?.astNode?.description ?? type.astNode.description, | ||
description: resolverValue?.astNode?.description ?? | ||
type.astNode.description, | ||
directives: (type.astNode.directives ?? []).concat(resolverValue?.astNode?.directives ?? []), | ||
@@ -129,3 +130,4 @@ }; | ||
...config.astNode, | ||
description: resolverValue?.astNode?.description ?? config.astNode.description, | ||
description: resolverValue?.astNode?.description ?? | ||
config.astNode.description, | ||
directives: (config.astNode.directives ?? []).concat(resolverValue?.astNode?.directives ?? []), | ||
@@ -205,3 +207,4 @@ }; | ||
...config.astNode, | ||
description: resolverValue?.astNode?.description ?? config.astNode.description, | ||
description: resolverValue?.astNode?.description ?? | ||
config.astNode.description, | ||
directives: (config.astNode.directives ?? []).concat(resolverValue?.astNode?.directives ?? []), | ||
@@ -237,3 +240,4 @@ }; | ||
...config.astNode, | ||
description: resolverValue?.astNode?.description ?? config.astNode.description, | ||
description: resolverValue?.astNode?.description ?? | ||
config.astNode.description, | ||
directives: (config.astNode.directives ?? []).concat(resolverValue?.astNode?.directives ?? []), | ||
@@ -240,0 +244,0 @@ }; |
@@ -5,6 +5,6 @@ "use strict"; | ||
const graphql_1 = require("graphql"); | ||
const merge_1 = require("@graphql-tools/merge"); | ||
const utils_1 = require("@graphql-tools/utils"); | ||
const addResolversToSchema_js_1 = require("./addResolversToSchema.js"); | ||
const assertResolversPresent_js_1 = require("./assertResolversPresent.js"); | ||
const merge_1 = require("@graphql-tools/merge"); | ||
/** | ||
@@ -11,0 +11,0 @@ * Builds a schema from the provided type definitions and resolvers. |
@@ -1,3 +0,3 @@ | ||
import { GraphQLEnumType, GraphQLScalarType, GraphQLUnionType, GraphQLInterfaceType, GraphQLObjectType, isSpecifiedScalarType, isScalarType, isEnumType, isUnionType, isInterfaceType, isObjectType, } from 'graphql'; | ||
import { mapSchema, MapperKind, forEachDefaultValue, serializeInputValue, healSchema, parseInputValue, forEachField, } from '@graphql-tools/utils'; | ||
import { GraphQLEnumType, GraphQLInterfaceType, GraphQLObjectType, GraphQLScalarType, GraphQLUnionType, isEnumType, isInterfaceType, isObjectType, isScalarType, isSpecifiedScalarType, isUnionType, } from 'graphql'; | ||
import { forEachDefaultValue, forEachField, healSchema, MapperKind, mapSchema, parseInputValue, serializeInputValue, } from '@graphql-tools/utils'; | ||
import { checkForResolveTypeResolver } from './checkForResolveTypeResolver.js'; | ||
@@ -97,3 +97,4 @@ import { extendResolversFromInterfaces } from './extendResolversFromInterfaces.js'; | ||
...type.astNode, | ||
description: resolverValue?.astNode?.description ?? type.astNode.description, | ||
description: resolverValue?.astNode?.description ?? | ||
type.astNode.description, | ||
directives: (type.astNode.directives ?? []).concat(resolverValue?.astNode?.directives ?? []), | ||
@@ -125,3 +126,4 @@ }; | ||
...config.astNode, | ||
description: resolverValue?.astNode?.description ?? config.astNode.description, | ||
description: resolverValue?.astNode?.description ?? | ||
config.astNode.description, | ||
directives: (config.astNode.directives ?? []).concat(resolverValue?.astNode?.directives ?? []), | ||
@@ -201,3 +203,4 @@ }; | ||
...config.astNode, | ||
description: resolverValue?.astNode?.description ?? config.astNode.description, | ||
description: resolverValue?.astNode?.description ?? | ||
config.astNode.description, | ||
directives: (config.astNode.directives ?? []).concat(resolverValue?.astNode?.directives ?? []), | ||
@@ -233,3 +236,4 @@ }; | ||
...config.astNode, | ||
description: resolverValue?.astNode?.description ?? config.astNode.description, | ||
description: resolverValue?.astNode?.description ?? | ||
config.astNode.description, | ||
directives: (config.astNode.directives ?? []).concat(resolverValue?.astNode?.directives ?? []), | ||
@@ -236,0 +240,0 @@ }; |
import { buildASTSchema, buildSchema, isSchema } from 'graphql'; | ||
import { applyExtensions, mergeExtensions, mergeResolvers, mergeTypeDefs, } from '@graphql-tools/merge'; | ||
import { asArray } from '@graphql-tools/utils'; | ||
import { addResolversToSchema } from './addResolversToSchema.js'; | ||
import { assertResolversPresent } from './assertResolversPresent.js'; | ||
import { applyExtensions, mergeExtensions, mergeResolvers, mergeTypeDefs } from '@graphql-tools/merge'; | ||
/** | ||
@@ -7,0 +7,0 @@ * Builds a schema from the provided type definitions and resolvers. |
@@ -1,2 +0,2 @@ | ||
import { asArray, getResolversFromSchema, extractExtensionsFromSchema, } from '@graphql-tools/utils'; | ||
import { asArray, extractExtensionsFromSchema, getResolversFromSchema, } from '@graphql-tools/utils'; | ||
import { makeExecutableSchema } from './makeExecutableSchema.js'; | ||
@@ -3,0 +3,0 @@ /** |
{ | ||
"name": "@graphql-tools/schema", | ||
"version": "10.0.0", | ||
"version": "10.0.1-rc-20231121170354-0e80c00a", | ||
"description": "A set of utils for faster development of GraphQL tools", | ||
@@ -11,3 +11,3 @@ "sideEffects": false, | ||
"@graphql-tools/merge": "^9.0.0", | ||
"@graphql-tools/utils": "^10.0.0", | ||
"@graphql-tools/utils": "10.0.9-rc-20231121170354-0e80c00a", | ||
"tslib": "^2.4.0", | ||
@@ -14,0 +14,0 @@ "value-or-promise": "^1.0.12" |
@@ -1,2 +0,2 @@ | ||
import { GraphQLResolveInfo, GraphQLFieldResolver } from 'graphql'; | ||
import { GraphQLFieldResolver, GraphQLResolveInfo } from 'graphql'; | ||
import { Maybe } from '@graphql-tools/utils'; | ||
@@ -3,0 +3,0 @@ export declare function chainResolvers<TArgs extends { |
@@ -1,3 +0,3 @@ | ||
import { TypeSource, IResolvers, IResolverValidationOptions, GraphQLParseOptions, SchemaExtensions } from '@graphql-tools/utils'; | ||
import { BuildSchemaOptions, GraphQLSchema } from 'graphql'; | ||
import { GraphQLParseOptions, IResolvers, IResolverValidationOptions, SchemaExtensions, TypeSource } from '@graphql-tools/utils'; | ||
export interface GraphQLSchemaWithContext<TContext> extends GraphQLSchema { | ||
@@ -4,0 +4,0 @@ __context?: TContext; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
66170
1259
2
+ Added@graphql-tools/utils@10.0.9-rc-20231121170354-0e80c00a(transitive)
+ Addedcross-inspect@1.0.0(transitive)
Updated@graphql-tools/utils@10.0.9-rc-20231121170354-0e80c00a