@omnigraph/thrift
Version:
20 lines (19 loc) • 967 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.getThriftExecutor = exports.loadNonExecutableGraphQLSchemaFromIDL = exports.loadThriftSubgraph = void 0;
const schema_js_1 = require("./schema.js");
Object.defineProperty(exports, "loadNonExecutableGraphQLSchemaFromIDL", { enumerable: true, get: function () { return schema_js_1.loadNonExecutableGraphQLSchemaFromIDL; } });
function loadThriftSubgraph(name, options) {
return ({ cwd, fetch }) => ({
name,
schema$: (0, schema_js_1.loadNonExecutableGraphQLSchemaFromIDL)({
fetchFn: fetch,
baseDir: cwd,
subgraphName: name,
...options,
}),
});
}
exports.loadThriftSubgraph = loadThriftSubgraph;
var transport_thrift_1 = require("@graphql-mesh/transport-thrift");
Object.defineProperty(exports, "getThriftExecutor", { enumerable: true, get: function () { return transport_thrift_1.getThriftExecutor; } });
;