Comparing version 1.4.0-next.2 to 1.4.0-next.3
@@ -1,2 +0,2 @@ | ||
import { GraphQLNamedType, GraphQLSchema, GraphQLSchemaConfig, printSchema } from 'graphql'; | ||
import { GraphQLDirective, GraphQLNamedType, GraphQLSchema, GraphQLSchemaConfig, printSchema } from 'graphql'; | ||
import { InputDefinitionBlock } from './definitions/definitionBlocks'; | ||
@@ -178,2 +178,22 @@ import type { NexusExtendInputTypeDef } from './definitions/extendInputType'; | ||
}; | ||
/** | ||
* Allows specifying defined directives to pass to the GraphQLSchema constructor. | ||
* | ||
* @example | ||
* import { | ||
* GraphQLSchema, | ||
* GraphQLDeferDirective, | ||
* GraphQLStreamDirective, | ||
* specifiedDirectives, | ||
* } from 'graphql'; | ||
* const nexusSchema = makeSchema({ | ||
* types: [...], | ||
* directives: [ | ||
* ...specifiedDirectives, | ||
* GraphQLDeferDirective, | ||
* GraphQLStreamDirective, | ||
* ], | ||
* }); | ||
*/ | ||
directives?: GraphQLDirective[]; | ||
} | ||
@@ -180,0 +200,0 @@ export interface BuilderConfig extends Omit<BuilderConfigInput, 'nonNullDefaults' | 'features' | 'plugins'> { |
@@ -1123,2 +1123,3 @@ import { __rest } from "tslib"; | ||
export function makeSchemaInternal(config) { | ||
var _a; | ||
const builder = new SchemaBuilder(config); | ||
@@ -1156,2 +1157,3 @@ builder.addTypes(config.types); | ||
extensions: Object.assign(Object.assign({}, config.extensions), { nexus: schemaExtension }), | ||
directives: (_a = config.directives) !== null && _a !== void 0 ? _a : undefined, | ||
}); | ||
@@ -1158,0 +1160,0 @@ onAfterBuildFns.forEach((fn) => fn(schema)); |
@@ -1,2 +0,2 @@ | ||
import { GraphQLNamedType, GraphQLSchema, GraphQLSchemaConfig, printSchema } from 'graphql'; | ||
import { GraphQLDirective, GraphQLNamedType, GraphQLSchema, GraphQLSchemaConfig, printSchema } from 'graphql'; | ||
import { InputDefinitionBlock } from './definitions/definitionBlocks'; | ||
@@ -178,2 +178,22 @@ import type { NexusExtendInputTypeDef } from './definitions/extendInputType'; | ||
}; | ||
/** | ||
* Allows specifying defined directives to pass to the GraphQLSchema constructor. | ||
* | ||
* @example | ||
* import { | ||
* GraphQLSchema, | ||
* GraphQLDeferDirective, | ||
* GraphQLStreamDirective, | ||
* specifiedDirectives, | ||
* } from 'graphql'; | ||
* const nexusSchema = makeSchema({ | ||
* types: [...], | ||
* directives: [ | ||
* ...specifiedDirectives, | ||
* GraphQLDeferDirective, | ||
* GraphQLStreamDirective, | ||
* ], | ||
* }); | ||
*/ | ||
directives?: GraphQLDirective[]; | ||
} | ||
@@ -180,0 +200,0 @@ export interface BuilderConfig extends Omit<BuilderConfigInput, 'nonNullDefaults' | 'features' | 'plugins'> { |
@@ -1127,2 +1127,3 @@ "use strict"; | ||
function makeSchemaInternal(config) { | ||
var _a; | ||
const builder = new SchemaBuilder(config); | ||
@@ -1160,2 +1161,3 @@ builder.addTypes(config.types); | ||
extensions: Object.assign(Object.assign({}, config.extensions), { nexus: schemaExtension }), | ||
directives: (_a = config.directives) !== null && _a !== void 0 ? _a : undefined, | ||
}); | ||
@@ -1162,0 +1164,0 @@ onAfterBuildFns.forEach((fn) => fn(schema)); |
{ | ||
"name": "nexus", | ||
"version": "1.4.0-next.2", | ||
"version": "1.4.0-next.3", | ||
"description": "Scalable, strongly typed GraphQL schema development", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
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
2172240
34228