@graphql-tools/utils 7.7.1 → 7.7.2

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/es5/index.esm.js CHANGED
@@ -1784,7 +1784,7 @@ function createNamedStub(name, type) {
1784
1784
  return new constructor({
1785
1785
  name: name,
1786
1786
  fields: {
1787
- __fake: {
1787
+ _fake: {
1788
1788
  type: GraphQLString,
1789
1789
  },
1790
1790
  },
@@ -1807,7 +1807,7 @@ function isNamedStub(type) {
1807
1807
  if (isObjectType(type) || isInterfaceType(type) || isInputObjectType(type)) {
1808
1808
  var fields = type.getFields();
1809
1809
  var fieldNames = Object.keys(fields);
1810
- return fieldNames.length === 1 && fields[fieldNames[0]].name === '__fake';
1810
+ return fieldNames.length === 1 && fields[fieldNames[0]].name === '_fake';
1811
1811
  }
1812
1812
  return false;
1813
1813
  }