UNPKG

@omnigraph/mysql

Version:

24 lines (23 loc) 882 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getSubgraphExecutor = exports.loadMySQLSubgraph = void 0; const tslib_1 = require("tslib"); const execution_js_1 = require("./execution.js"); const schema_js_1 = require("./schema.js"); tslib_1.__exportStar(require("./schema.js"), exports); tslib_1.__exportStar(require("./execution.js"), exports); function loadMySQLSubgraph(name, opts) { return () => ({ name, schema$: (0, schema_js_1.loadGraphQLSchemaFromMySQL)(name, opts), }); } exports.loadMySQLSubgraph = loadMySQLSubgraph; function getSubgraphExecutor(transportContext) { return (0, execution_js_1.getMySQLExecutor)({ subgraph: transportContext.getSubgraph(), pubsub: transportContext.pubsub, logger: transportContext.logger, }); } exports.getSubgraphExecutor = getSubgraphExecutor;