@graphql-tools/schema
Advanced tools
Comparing version 10.0.3 to 10.0.4-alpha-20240520145936-fa5bebfdb236918a30c9fddc41a5b8cd716474b2
@@ -52,3 +52,3 @@ "use strict"; | ||
*/ | ||
function makeExecutableSchema({ typeDefs, resolvers = {}, resolverValidationOptions = {}, inheritResolversFromInterfaces = false, updateResolversInPlace = false, schemaExtensions, ...otherOptions }) { | ||
function makeExecutableSchema({ typeDefs, resolvers = {}, resolverValidationOptions = {}, inheritResolversFromInterfaces = false, updateResolversInPlace = false, schemaExtensions, defaultFieldResolver, ...otherOptions }) { | ||
// Validate and clean up arguments | ||
@@ -83,2 +83,3 @@ if (typeof resolverValidationOptions !== 'object') { | ||
updateResolversInPlace, | ||
defaultFieldResolver, | ||
}); | ||
@@ -85,0 +86,0 @@ if (Object.keys(resolverValidationOptions).length > 0) { |
@@ -49,3 +49,3 @@ import { buildASTSchema, buildSchema, isSchema } from 'graphql'; | ||
*/ | ||
export function makeExecutableSchema({ typeDefs, resolvers = {}, resolverValidationOptions = {}, inheritResolversFromInterfaces = false, updateResolversInPlace = false, schemaExtensions, ...otherOptions }) { | ||
export function makeExecutableSchema({ typeDefs, resolvers = {}, resolverValidationOptions = {}, inheritResolversFromInterfaces = false, updateResolversInPlace = false, schemaExtensions, defaultFieldResolver, ...otherOptions }) { | ||
// Validate and clean up arguments | ||
@@ -80,2 +80,3 @@ if (typeof resolverValidationOptions !== 'object') { | ||
updateResolversInPlace, | ||
defaultFieldResolver, | ||
}); | ||
@@ -82,0 +83,0 @@ if (Object.keys(resolverValidationOptions).length > 0) { |
{ | ||
"name": "@graphql-tools/schema", | ||
"version": "10.0.3", | ||
"version": "10.0.4-alpha-20240520145936-fa5bebfdb236918a30c9fddc41a5b8cd716474b2", | ||
"description": "A set of utils for faster development of GraphQL tools", | ||
@@ -11,3 +11,3 @@ "sideEffects": false, | ||
"@graphql-tools/merge": "^9.0.3", | ||
"@graphql-tools/utils": "^10.0.13", | ||
"@graphql-tools/utils": "10.2.1-alpha-20240520145936-fa5bebfdb236918a30c9fddc41a5b8cd716474b2", | ||
"tslib": "^2.4.0", | ||
@@ -14,0 +14,0 @@ "value-or-promise": "^1.0.12" |
@@ -46,2 +46,2 @@ import { GraphQLSchema } from 'graphql'; | ||
*/ | ||
export declare function makeExecutableSchema<TContext = any>({ typeDefs, resolvers, resolverValidationOptions, inheritResolversFromInterfaces, updateResolversInPlace, schemaExtensions, ...otherOptions }: IExecutableSchemaDefinition<TContext>): GraphQLSchema; | ||
export declare function makeExecutableSchema<TContext = any>({ typeDefs, resolvers, resolverValidationOptions, inheritResolversFromInterfaces, updateResolversInPlace, schemaExtensions, defaultFieldResolver, ...otherOptions }: IExecutableSchemaDefinition<TContext>): GraphQLSchema; |
@@ -1,2 +0,2 @@ | ||
import { BuildSchemaOptions, GraphQLSchema } from 'graphql'; | ||
import { BuildSchemaOptions, GraphQLFieldResolver, GraphQLSchema } from 'graphql'; | ||
import { GraphQLParseOptions, IResolvers, IResolverValidationOptions, SchemaExtensions, TypeSource } from '@graphql-tools/utils'; | ||
@@ -35,2 +35,6 @@ export interface GraphQLSchemaWithContext<TContext> extends GraphQLSchema { | ||
schemaExtensions?: SchemaExtensions | Array<SchemaExtensions>; | ||
/** | ||
* Default field resolver | ||
*/ | ||
defaultFieldResolver?: GraphQLFieldResolver<any, 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
68458
1310
2