@cran/gql.core
Version:
Cran/GraphQL Core Utilities
18 lines (17 loc) • 1.07 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.withCoreDirectives = exports.resolveTypeDirective = exports.resolveDirective = exports.isTypeOfDirective = void 0;
const isTypeOf_1 = require("./isTypeOf");
Object.defineProperty(exports, "isTypeOfDirective", { enumerable: true, get: function () { return isTypeOf_1.isTypeOfDirective; } });
const resolve_1 = require("./resolve");
Object.defineProperty(exports, "resolveDirective", { enumerable: true, get: function () { return resolve_1.resolveDirective; } });
const resolveType_1 = require("./resolveType");
Object.defineProperty(exports, "resolveTypeDirective", { enumerable: true, get: function () { return resolveType_1.resolveTypeDirective; } });
function withCoreDirectives(options = {}) {
return [
(0, isTypeOf_1.isTypeOfDirective)(options.isTypeOfDirective),
(0, resolve_1.resolveDirective)(options.resolveDirective),
(0, resolveType_1.resolveTypeDirective)(options.resolveTypeDirective),
];
}
exports.withCoreDirectives = withCoreDirectives;