UNPKG

@omnigraph/neo4j

Version:

26 lines (25 loc) 994 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getSubgraphExecutor = exports.loadNeo4JSubgraph = void 0; const tslib_1 = require("tslib"); const executor_js_1 = require("./executor.js"); const schema_js_1 = require("./schema.js"); function loadNeo4JSubgraph(name, opts) { return ({ logger }) => ({ name, schema$: (0, schema_js_1.loadGraphQLSchemaFromNeo4J)(name, opts), }); } exports.loadNeo4JSubgraph = loadNeo4JSubgraph; function getSubgraphExecutor(transportContext) { return (0, executor_js_1.getNeo4JExecutor)({ schema: transportContext.getSubgraph(), pubsub: transportContext.pubsub, logger: transportContext.logger, }); } exports.getSubgraphExecutor = getSubgraphExecutor; tslib_1.__exportStar(require("./schema.js"), exports); tslib_1.__exportStar(require("./executor.js"), exports); tslib_1.__exportStar(require("./driver.js"), exports); tslib_1.__exportStar(require("./auth.js"), exports);