@graphql-tools/schema
Advanced tools
Comparing version 10.0.4 to 10.0.5-rc-20240811220920-e7aa7ff2bc82aad4be9e4eaf38fc887a51be9239
@@ -88,4 +88,5 @@ "use strict"; | ||
if (schemaExtensions) { | ||
schemaExtensions = (0, merge_1.mergeExtensions)((0, utils_1.asArray)(schemaExtensions)); | ||
(0, merge_1.applyExtensions)(schema, schemaExtensions); | ||
for (const schemaExtension of (0, utils_1.asArray)(schemaExtensions)) { | ||
(0, merge_1.applyExtensions)(schema, schemaExtension); | ||
} | ||
} | ||
@@ -92,0 +93,0 @@ return schema; |
@@ -16,3 +16,6 @@ "use strict"; | ||
for (const schema of config.schemas) { | ||
extractedTypeDefs.push(schema); | ||
extractedTypeDefs.push((0, utils_1.getDocumentNodeFromSchema)(schema, { | ||
...config, | ||
pathToDirectivesInExtensions: ['NONEXISTENT'], | ||
})); | ||
extractedResolvers.push((0, utils_1.getResolversFromSchema)(schema)); | ||
@@ -19,0 +22,0 @@ extractedSchemaExtensions.push((0, utils_1.extractExtensionsFromSchema)(schema)); |
import { buildASTSchema, buildSchema, isSchema } from 'graphql'; | ||
import { applyExtensions, mergeExtensions, mergeResolvers, mergeTypeDefs, } from '@graphql-tools/merge'; | ||
import { applyExtensions, mergeResolvers, mergeTypeDefs } from '@graphql-tools/merge'; | ||
import { asArray } from '@graphql-tools/utils'; | ||
@@ -85,6 +85,7 @@ import { addResolversToSchema } from './addResolversToSchema.js'; | ||
if (schemaExtensions) { | ||
schemaExtensions = mergeExtensions(asArray(schemaExtensions)); | ||
applyExtensions(schema, schemaExtensions); | ||
for (const schemaExtension of asArray(schemaExtensions)) { | ||
applyExtensions(schema, schemaExtension); | ||
} | ||
} | ||
return schema; | ||
} |
@@ -1,2 +0,2 @@ | ||
import { asArray, extractExtensionsFromSchema, getResolversFromSchema, } from '@graphql-tools/utils'; | ||
import { asArray, extractExtensionsFromSchema, getDocumentNodeFromSchema, getResolversFromSchema, } from '@graphql-tools/utils'; | ||
import { makeExecutableSchema } from './makeExecutableSchema.js'; | ||
@@ -13,3 +13,6 @@ /** | ||
for (const schema of config.schemas) { | ||
extractedTypeDefs.push(schema); | ||
extractedTypeDefs.push(getDocumentNodeFromSchema(schema, { | ||
...config, | ||
pathToDirectivesInExtensions: ['NONEXISTENT'], | ||
})); | ||
extractedResolvers.push(getResolversFromSchema(schema)); | ||
@@ -16,0 +19,0 @@ extractedSchemaExtensions.push(extractExtensionsFromSchema(schema)); |
{ | ||
"name": "@graphql-tools/schema", | ||
"version": "10.0.4", | ||
"version": "10.0.5-rc-20240811220920-e7aa7ff2bc82aad4be9e4eaf38fc887a51be9239", | ||
"description": "A set of utils for faster development of GraphQL tools", | ||
@@ -10,4 +10,4 @@ "sideEffects": false, | ||
"dependencies": { | ||
"@graphql-tools/merge": "^9.0.3", | ||
"@graphql-tools/utils": "^10.2.1", | ||
"@graphql-tools/merge": "9.0.5-rc-20240811220920-e7aa7ff2bc82aad4be9e4eaf38fc887a51be9239", | ||
"@graphql-tools/utils": "10.4.0-rc-20240811220920-e7aa7ff2bc82aad4be9e4eaf38fc887a51be9239", | ||
"tslib": "^2.4.0", | ||
@@ -14,0 +14,0 @@ "value-or-promise": "^1.0.12" |
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
68805
1318
2
+ Added@graphql-tools/merge@9.0.5-rc-20240811220920-e7aa7ff2bc82aad4be9e4eaf38fc887a51be9239(transitive)
+ Added@graphql-tools/utils@10.4.0-rc-20240811220920-e7aa7ff2bc82aad4be9e4eaf38fc887a51be9239(transitive)
- Removed@graphql-tools/merge@9.0.8(transitive)
- Removed@graphql-tools/utils@10.5.5(transitive)
Updated@graphql-tools/merge@9.0.5-rc-20240811220920-e7aa7ff2bc82aad4be9e4eaf38fc887a51be9239
Updated@graphql-tools/utils@10.4.0-rc-20240811220920-e7aa7ff2bc82aad4be9e4eaf38fc887a51be9239