@graphql-tools/utils 10.10.2 → 10.10.3
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.
|
@@ -123,7 +123,7 @@ function astFromSchema(schema, pathToDirectivesInExtensions) {
|
|
|
123
123
|
return null;
|
|
124
124
|
}
|
|
125
125
|
const schemaNode = {
|
|
126
|
-
kind: operationTypes
|
|
126
|
+
kind: operationTypes != null ? graphql_1.Kind.SCHEMA_DEFINITION : graphql_1.Kind.SCHEMA_EXTENSION,
|
|
127
127
|
operationTypes,
|
|
128
128
|
// ConstXNode has been introduced in v16 but it is not compatible with XNode so we do `as any` for backwards compatibility
|
|
129
129
|
directives: directives,
|
|
@@ -103,7 +103,7 @@ export function astFromSchema(schema, pathToDirectivesInExtensions) {
|
|
|
103
103
|
return null;
|
|
104
104
|
}
|
|
105
105
|
const schemaNode = {
|
|
106
|
-
kind: operationTypes
|
|
106
|
+
kind: operationTypes != null ? Kind.SCHEMA_DEFINITION : Kind.SCHEMA_EXTENSION,
|
|
107
107
|
operationTypes,
|
|
108
108
|
// ConstXNode has been introduced in v16 but it is not compatible with XNode so we do `as any` for backwards compatibility
|
|
109
109
|
directives: directives,
|