UNPKG

@graphql-tools/utils

Version:

Common package containing utils and types for GraphQL tools

8 lines (7 loc) 304 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isDocumentNode = isDocumentNode; const graphql_1 = require("graphql"); function isDocumentNode(object) { return object && typeof object === 'object' && 'kind' in object && object.kind === graphql_1.Kind.DOCUMENT; }