UNPKG

@graphql-mesh/transport-mysql

Version:
12 lines (11 loc) 427 B
import { GraphQLSchema } from 'graphql'; import { type Pool } from 'mysql'; import { Logger, MeshPubSub } from '@graphql-mesh/types'; import { Executor } from '@graphql-tools/utils'; export interface GetMySQLExecutorOpts { subgraph: GraphQLSchema; pool?: Pool; pubsub?: MeshPubSub; logger: Logger; } export declare function getMySQLExecutor({ subgraph, pool, pubsub, logger, }: GetMySQLExecutorOpts): Executor;