UNPKG

@omnigraph/neo4j

Version:

20 lines (19 loc) 609 B
import { getNeo4JExecutor } from './executor.js'; import { loadGraphQLSchemaFromNeo4J } from './schema.js'; export function loadNeo4JSubgraph(name, opts) { return ({ logger }) => ({ name, schema$: loadGraphQLSchemaFromNeo4J(name, opts), }); } export function getSubgraphExecutor(transportContext) { return getNeo4JExecutor({ schema: transportContext.getSubgraph(), pubsub: transportContext.pubsub, logger: transportContext.logger, }); } export * from './schema.js'; export * from './executor.js'; export * from './driver.js'; export * from './auth.js';