import Model from '../dataModel/model'; import { Context, Plugin } from './interface'; import { ListReadable } from '../dataSource/interface'; export default class RelayPlugin implements Plugin { private whereInputPlugin; private baseTypePlugin; init(context: Context): void; setPlugins(plugins: Plugin[]): void; visitModel(model: Model, context: Context): void; resolveInQuery({ model, dataSource }: { model: Model; dataSource: ListReadable; }): { [x: string]: (root: any, args: any, context: any) => Promise<{ pageInfo: { hasNextPage: boolean | (() => Promise); hasPreviousPage: boolean | (() => Promise); startCursor: any; endCursor: any; }; edges: { cursor: any; node: any; }[]; }>; }; private createConnectionQueryName; private createConnectionType; private createEdgeType; private getOrderByInputName; }