Initial Save
This commit is contained in:
13
node_modules/@apollographql/apollo-tools/lib/utilities/graphql.js
generated
vendored
Normal file
13
node_modules/@apollographql/apollo-tools/lib/utilities/graphql.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.isDocumentNode = exports.isNode = void 0;
|
||||
const graphql_1 = require("graphql");
|
||||
function isNode(maybeNode) {
|
||||
return maybeNode && typeof maybeNode.kind === "string";
|
||||
}
|
||||
exports.isNode = isNode;
|
||||
function isDocumentNode(node) {
|
||||
return isNode(node) && node.kind === graphql_1.Kind.DOCUMENT;
|
||||
}
|
||||
exports.isDocumentNode = isDocumentNode;
|
||||
//# sourceMappingURL=graphql.js.map
|
||||
Reference in New Issue
Block a user