UNPKG

@grapi/server

Version:

Grapi Schema Generator For GraphQL Server

18 lines (17 loc) 660 B
import { IObjectTypeResolver } from '@graphql-tools/utils'; 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; }): IObjectTypeResolver; private static createFindQueryName; private static createFindOneQueryName; }