UNPKG

@terabits/grapi

Version:

Grapi Schema Generator For GraphQL Server

18 lines (17 loc) 626 B
import { ListReadable, MapReadable } from '..'; import Model from '../dataModel/model'; import { Context, Plugin } from './interface'; export default class QueryPlugin implements Plugin { private whereInputPlugin; private orderInputPlugin; private baseTypePlugin; setPlugins(plugins: Plugin[]): void; visitModel(model: Model, context: Context): void; resolveInQuery({ model, dataSource, }: { model: Model; dataSource: ListReadable & MapReadable; }): any; private static createObjectQueryName; private static createFindQueryName; private static createFindOneQueryName; }