@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.cjs.js +2 -2
- package/es5/index.cjs.js.map +1 -1
- package/es5/index.esm.js +2 -2
- package/es5/index.esm.js.map +1 -1
- package/es5/package.json +2 -2
- package/index.cjs.js +2 -2
- package/index.cjs.js.map +1 -1
- package/index.esm.js +2 -2
- package/index.esm.js.map +1 -1
- package/package.json +2 -2
package/es5/index.cjs.js
CHANGED
|
@@ -1788,7 +1788,7 @@ function createNamedStub(name, type) {
|
|
|
1788
1788
|
return new constructor({
|
|
1789
1789
|
name: name,
|
|
1790
1790
|
fields: {
|
|
1791
|
-
|
|
1791
|
+
_fake: {
|
|
1792
1792
|
type: graphql.GraphQLString,
|
|
1793
1793
|
},
|
|
1794
1794
|
},
|
|
@@ -1811,7 +1811,7 @@ function isNamedStub(type) {
|
|
|
1811
1811
|
if (graphql.isObjectType(type) || graphql.isInterfaceType(type) || graphql.isInputObjectType(type)) {
|
|
1812
1812
|
var fields = type.getFields();
|
|
1813
1813
|
var fieldNames = Object.keys(fields);
|
|
1814
|
-
return fieldNames.length === 1 && fields[fieldNames[0]].name === '
|
|
1814
|
+
return fieldNames.length === 1 && fields[fieldNames[0]].name === '_fake';
|
|
1815
1815
|
}
|
|
1816
1816
|
return false;
|
|
1817
1817
|
}
|