@terabits/grapi
Version:
Grapi Schema Generator For GraphQL Server
23 lines (22 loc) • 965 B
TypeScript
import { Where } from '..';
import Model from '../dataModel/model';
import { Context, Plugin } from './interface';
export default class WhereInputPlugin implements Plugin {
visitModel(model: Model, context: Context): void;
getWhereInputName(model: Model): string;
getWhereUniqueInputName(model: Model): string;
parseUniqueWhere(where: Record<string, any>): Where;
parseWhere(where: Record<string, any>, model: Model): Where;
static parseWhereIterate(where: Record<string, any>, model: Model): Where;
private static parseFilterListScalar;
private static getNameAndOperator;
private createWhereFilter;
private static createWhereFilterListCustomScalars;
private static createWhereFilterCustomScalars;
private createWhereUniqueFilter;
private static parseEqFilter;
private static parseContainsFilter;
private static parseInFilter;
private static parseGtLtInFilter;
private static parseObjectFilter;
}