UNPKG

@omnigraph/mysql

Version:

18 lines (17 loc) 547 B
import { getMySQLExecutor } from './execution.js'; import { loadGraphQLSchemaFromMySQL } from './schema.js'; export * from './schema.js'; export * from './execution.js'; export function loadMySQLSubgraph(name, opts) { return () => ({ name, schema$: loadGraphQLSchemaFromMySQL(name, opts), }); } export function getSubgraphExecutor(transportContext) { return getMySQLExecutor({ subgraph: transportContext.getSubgraph(), pubsub: transportContext.pubsub, logger: transportContext.logger, }); }