@graphql-tools/wrap 8.4.19-alpha-4be24440.0 → 8.4.19
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 +3 -3
- package/package.json +4 -4
package/index.js
CHANGED
|
@@ -1299,7 +1299,7 @@ class WrapFields {
|
|
|
1299
1299
|
const nextWrappingTypeName = this.wrappingTypeNames[wrapIndex];
|
|
1300
1300
|
newSchema = utils.appendObjectFields(newSchema, nextWrappingTypeName, {
|
|
1301
1301
|
[wrappingFieldName]: {
|
|
1302
|
-
type: newSchema.getType(wrappingTypeName),
|
|
1302
|
+
type: new graphql.GraphQLNonNull(newSchema.getType(wrappingTypeName)),
|
|
1303
1303
|
resolve: delegate.defaultMergedResolver,
|
|
1304
1304
|
},
|
|
1305
1305
|
});
|
|
@@ -1327,7 +1327,7 @@ class WrapFields {
|
|
|
1327
1327
|
}
|
|
1328
1328
|
[newSchema] = utils.modifyObjectFields(newSchema, this.outerTypeName, fieldName => !!newTargetFieldConfigMap[fieldName], {
|
|
1329
1329
|
[wrappingFieldName]: {
|
|
1330
|
-
type: newSchema.getType(wrappingTypeName),
|
|
1330
|
+
type: new graphql.GraphQLNonNull(newSchema.getType(wrappingTypeName)),
|
|
1331
1331
|
resolve,
|
|
1332
1332
|
},
|
|
1333
1333
|
});
|
package/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GraphQLObjectType, GraphQLInterfaceType, GraphQLUnionType, isSpecifiedScalarType, isScalarType, visit, Kind, TypeInfo, visitWithTypeInfo, isObjectType, isInterfaceType, typeFromAST, isInputType, isLeafType, valueFromAST, getNullableType, BREAK, parse, getIntrospectionQuery, buildClientSchema } from 'graphql';
|
|
1
|
+
import { GraphQLObjectType, GraphQLInterfaceType, GraphQLUnionType, isSpecifiedScalarType, isScalarType, visit, Kind, TypeInfo, visitWithTypeInfo, isObjectType, isInterfaceType, typeFromAST, isInputType, isLeafType, valueFromAST, GraphQLNonNull, getNullableType, BREAK, parse, getIntrospectionQuery, buildClientSchema } from 'graphql';
|
|
2
2
|
import { getRootTypeMap, getResponseKeyFromInfo, mapSchema, MapperKind, renameType, visitData, transformInputValue, visitResult, createVariableNameGenerator, updateArgument, relocatedError, getArgumentValues, valueMatchesCriteria, getDirectives, pruneSchema, selectObjectFields, appendObjectFields, modifyObjectFields, removeObjectFields, isAsyncIterable } from '@graphql-tools/utils';
|
|
3
3
|
import { applySchemaTransforms, delegateToSchema, isExternalObject, getUnpathedErrors, getSubschema, resolveExternalValue, defaultMergedResolver } from '@graphql-tools/delegate';
|
|
4
4
|
import { ValueOrPromise } from 'value-or-promise';
|
|
@@ -1295,7 +1295,7 @@ class WrapFields {
|
|
|
1295
1295
|
const nextWrappingTypeName = this.wrappingTypeNames[wrapIndex];
|
|
1296
1296
|
newSchema = appendObjectFields(newSchema, nextWrappingTypeName, {
|
|
1297
1297
|
[wrappingFieldName]: {
|
|
1298
|
-
type: newSchema.getType(wrappingTypeName),
|
|
1298
|
+
type: new GraphQLNonNull(newSchema.getType(wrappingTypeName)),
|
|
1299
1299
|
resolve: defaultMergedResolver,
|
|
1300
1300
|
},
|
|
1301
1301
|
});
|
|
@@ -1323,7 +1323,7 @@ class WrapFields {
|
|
|
1323
1323
|
}
|
|
1324
1324
|
[newSchema] = modifyObjectFields(newSchema, this.outerTypeName, fieldName => !!newTargetFieldConfigMap[fieldName], {
|
|
1325
1325
|
[wrappingFieldName]: {
|
|
1326
|
-
type: newSchema.getType(wrappingTypeName),
|
|
1326
|
+
type: new GraphQLNonNull(newSchema.getType(wrappingTypeName)),
|
|
1327
1327
|
resolve,
|
|
1328
1328
|
},
|
|
1329
1329
|
});
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-tools/wrap",
|
|
3
|
-
"version": "8.4.19
|
|
3
|
+
"version": "8.4.19",
|
|
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 || ^17.0.0"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@graphql-tools/delegate": "8.7.10
|
|
11
|
-
"@graphql-tools/schema": "8.3.13
|
|
12
|
-
"@graphql-tools/utils": "8.6.12
|
|
10
|
+
"@graphql-tools/delegate": "8.7.10",
|
|
11
|
+
"@graphql-tools/schema": "8.3.13",
|
|
12
|
+
"@graphql-tools/utils": "8.6.12",
|
|
13
13
|
"tslib": "~2.4.0",
|
|
14
14
|
"value-or-promise": "1.0.11"
|
|
15
15
|
},
|