@graphql-tools/utils 9.1.3 → 9.1.4-alpha-20230111195710-5d94403f

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.
@@ -299,7 +299,7 @@ function resolveField({ type, field, models, firstCall, path, ancestors, ignore,
299
299
  const fieldPathStr = fieldPath.join('.');
300
300
  let fieldName = field.name;
301
301
  if (fieldTypeMap.has(fieldPathStr) && fieldTypeMap.get(fieldPathStr) !== field.type.toString()) {
302
- fieldName += field.type.toString().replace('!', 'NonNull');
302
+ fieldName += field.type.toString().replace('!', 'NonNull').replace('[', 'List').replace(']', '');
303
303
  }
304
304
  fieldTypeMap.set(fieldPathStr, field.type.toString());
305
305
  if (!(0, graphql_1.isScalarType)(namedType) && !(0, graphql_1.isEnumType)(namedType)) {
@@ -295,7 +295,7 @@ function resolveField({ type, field, models, firstCall, path, ancestors, ignore,
295
295
  const fieldPathStr = fieldPath.join('.');
296
296
  let fieldName = field.name;
297
297
  if (fieldTypeMap.has(fieldPathStr) && fieldTypeMap.get(fieldPathStr) !== field.type.toString()) {
298
- fieldName += field.type.toString().replace('!', 'NonNull');
298
+ fieldName += field.type.toString().replace('!', 'NonNull').replace('[', 'List').replace(']', '');
299
299
  }
300
300
  fieldTypeMap.set(fieldPathStr, field.type.toString());
301
301
  if (!isScalarType(namedType) && !isEnumType(namedType)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-tools/utils",
3
- "version": "9.1.3",
3
+ "version": "9.1.4-alpha-20230111195710-5d94403f",
4
4
  "description": "Common package containing utils and types for GraphQL tools",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {