UNPKG

@gabliam/graphql-express

Version:
8 lines (7 loc) 524 B
import { Container, GabliamPlugin } from '@gabliam/core'; import { GraphqlConfig, GraphqlCorePlugin } from '@gabliam/graphql-core'; import { ApolloServer, Config, ExpressContext } from 'apollo-server-express'; export declare class GraphqlPlugin extends GraphqlCorePlugin implements GabliamPlugin { setUpAppolloServer(container: Container, graphqlPluginConfig: GraphqlConfig, apolloServer: ApolloServer<ExpressContext>): Promise<void>; getApolloServer(config: Config<ExpressContext>): ApolloServer<ExpressContext>; }