UNPKG

@omnigraph/thrift

Version:
15 lines (14 loc) 476 B
import { loadNonExecutableGraphQLSchemaFromIDL } from './schema.js'; export function loadThriftSubgraph(name, options) { return ({ cwd, fetch }) => ({ name, schema$: loadNonExecutableGraphQLSchemaFromIDL({ fetchFn: fetch, baseDir: cwd, subgraphName: name, ...options, }), }); } export { loadNonExecutableGraphQLSchemaFromIDL }; export { getThriftExecutor } from '@graphql-mesh/transport-thrift';