@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/index.esm.js CHANGED
@@ -1678,7 +1678,7 @@ function createNamedStub(name, type) {
1678
1678
  return new constructor({
1679
1679
  name,
1680
1680
  fields: {
1681
- __fake: {
1681
+ _fake: {
1682
1682
  type: GraphQLString,
1683
1683
  },
1684
1684
  },
@@ -1701,7 +1701,7 @@ function isNamedStub(type) {
1701
1701
  if (isObjectType(type) || isInterfaceType(type) || isInputObjectType(type)) {
1702
1702
  const fields = type.getFields();
1703
1703
  const fieldNames = Object.keys(fields);
1704
- return fieldNames.length === 1 && fields[fieldNames[0]].name === '__fake';
1704
+ return fieldNames.length === 1 && fields[fieldNames[0]].name === '_fake';
1705
1705
  }
1706
1706
  return false;
1707
1707
  }