@apollo/client
Version:
A fully-featured caching GraphQL client.
16 lines (15 loc) • 541 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isDocumentNode = isDocumentNode;
const isNonNullObject_js_1 = require("./isNonNullObject.cjs");
/**
* @internal
*
* @deprecated This is an internal API and should not be used directly. This can be removed or changed at any time.
*/
function isDocumentNode(value) {
return ((0, isNonNullObject_js_1.isNonNullObject)(value) &&
value.kind === "Document" &&
Array.isArray(value.definitions));
}
//# sourceMappingURL=isDocumentNode.cjs.map