@graphql-tools/schema 8.3.4 → 8.3.6
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.
- package/index.js +2 -2
- package/index.mjs +2 -2
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -130,7 +130,7 @@ function addResolversToSchema(schemaOrOptions, legacyInputResolvers, legacyInput
|
|
|
130
130
|
const type = schema.getType(typeName);
|
|
131
131
|
if (type == null) {
|
|
132
132
|
if (requireResolversToMatchSchema === 'ignore') {
|
|
133
|
-
|
|
133
|
+
continue;
|
|
134
134
|
}
|
|
135
135
|
throw new Error(`"${typeName}" defined in resolvers, but not in schema`);
|
|
136
136
|
}
|
|
@@ -266,7 +266,7 @@ function addResolversToExistingSchema(schema, resolvers, defaultFieldResolver) {
|
|
|
266
266
|
if (fieldName.startsWith('__')) {
|
|
267
267
|
// this is for isTypeOf and resolveType and all the other stuff.
|
|
268
268
|
type[fieldName.substring(2)] = resolverValue[fieldName];
|
|
269
|
-
|
|
269
|
+
continue;
|
|
270
270
|
}
|
|
271
271
|
const fields = type.getFields();
|
|
272
272
|
const field = fields[fieldName];
|
package/index.mjs
CHANGED
|
@@ -126,7 +126,7 @@ function addResolversToSchema(schemaOrOptions, legacyInputResolvers, legacyInput
|
|
|
126
126
|
const type = schema.getType(typeName);
|
|
127
127
|
if (type == null) {
|
|
128
128
|
if (requireResolversToMatchSchema === 'ignore') {
|
|
129
|
-
|
|
129
|
+
continue;
|
|
130
130
|
}
|
|
131
131
|
throw new Error(`"${typeName}" defined in resolvers, but not in schema`);
|
|
132
132
|
}
|
|
@@ -262,7 +262,7 @@ function addResolversToExistingSchema(schema, resolvers, defaultFieldResolver) {
|
|
|
262
262
|
if (fieldName.startsWith('__')) {
|
|
263
263
|
// this is for isTypeOf and resolveType and all the other stuff.
|
|
264
264
|
type[fieldName.substring(2)] = resolverValue[fieldName];
|
|
265
|
-
|
|
265
|
+
continue;
|
|
266
266
|
}
|
|
267
267
|
const fields = type.getFields();
|
|
268
268
|
const field = fields[fieldName];
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-tools/schema",
|
|
3
|
-
"version": "8.3.
|
|
3
|
+
"version": "8.3.6",
|
|
4
4
|
"description": "A set of utils for faster development of GraphQL tools",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"peerDependencies": {
|
|
7
7
|
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@graphql-tools/merge": "8.2.
|
|
11
|
-
"@graphql-tools/utils": "8.6.
|
|
10
|
+
"@graphql-tools/merge": "8.2.6",
|
|
11
|
+
"@graphql-tools/utils": "8.6.5",
|
|
12
12
|
"tslib": "~2.3.0",
|
|
13
13
|
"value-or-promise": "1.0.11"
|
|
14
14
|
},
|