UNPKG

@graphql-mesh/transport-neo4j

Version:
19 lines (18 loc) 830 B
import type { DocumentNode, GraphQLSchema } from 'graphql'; import type { Driver } from 'neo4j-driver'; import type { DisposableExecutor } from '@graphql-mesh/transport-common'; import { type HivePubSub, type Logger, type MeshPubSub } from '@graphql-mesh/types'; export interface Neo4JExecutorOpts { schema: GraphQLSchema; driver?: Driver; pubsub?: MeshPubSub | HivePubSub; logger?: Logger; } export declare function getNeo4JExecutor(opts: Neo4JExecutorOpts): Promise<DisposableExecutor>; interface GetExecutableSchemaFromTypeDefs { driver: Driver; pubsub?: MeshPubSub | HivePubSub; typeDefs?: string | DocumentNode; } export declare function getExecutableSchemaFromTypeDefsAndDriver({ driver, pubsub: meshOrHivePubSub, typeDefs, }: GetExecutableSchemaFromTypeDefs): Promise<GraphQLSchema>; export {};