@graphql-tools/wrap 9.2.17 → 9.2.18

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.
@@ -103,7 +103,7 @@ class HoistField {
103
103
  newTargetField.type = new graphql_1.GraphQLList(newTargetField.type);
104
104
  const resolver = newTargetField.resolve;
105
105
  newTargetField.resolve = (parent, args, context, info) => Promise.all(Object.keys(parent)
106
- .filter(key => !key.startsWith('__'))
106
+ .filter(key => !isNaN(parseInt(key, 10)))
107
107
  .map(key => resolver(parent[key], args, context, info)));
108
108
  }
109
109
  newSchema = (0, utils_1.appendObjectFields)(newSchema, this.typeName, {
@@ -99,7 +99,7 @@ export default class HoistField {
99
99
  newTargetField.type = new GraphQLList(newTargetField.type);
100
100
  const resolver = newTargetField.resolve;
101
101
  newTargetField.resolve = (parent, args, context, info) => Promise.all(Object.keys(parent)
102
- .filter(key => !key.startsWith('__'))
102
+ .filter(key => !isNaN(parseInt(key, 10)))
103
103
  .map(key => resolver(parent[key], args, context, info)));
104
104
  }
105
105
  newSchema = appendObjectFields(newSchema, this.typeName, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-tools/wrap",
3
- "version": "9.2.17",
3
+ "version": "9.2.18",
4
4
  "description": "A set of utils for faster development of GraphQL tools",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {