UNPKG

type-graphql-dataloader

Version:

A utility to use DataLoader with TypeGraphQL without fuss

8 lines (7 loc) 356 B
import type { ApolloServerPlugin } from "apollo-server-plugin-base"; import type { Connection } from "typeorm"; interface ApolloServerLoaderPluginOption { typeormGetConnection?: () => Connection; } declare const ApolloServerLoaderPlugin: (option?: ApolloServerLoaderPluginOption | undefined) => ApolloServerPlugin; export { ApolloServerLoaderPlugin };