13 lines
457 B
JavaScript
13 lines
457 B
JavaScript
"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
|