import Model from '../dataModel/model'; import { Context, Plugin } from './interface'; import { ListMutable, MapMutable } from '../dataSource/interface'; import { Hook } from '../hooks/interface'; export default class UpdatePlugin implements Plugin { private whereInputPlugin; private baseTypePlugin; private createPlugin; private hook; constructor({ hook }: { hook: Hook; }); setPlugins(plugins: Plugin[]): void; visitModel(model: Model, context: Context): void; resolveInMutation({ model, dataSource }: { model: Model; dataSource: ListMutable & MapMutable; }): { [x: string]: (root: any, args: any, context: any) => Promise; }; private generateUpdateInput; private getInputName; private createUniqueReturnType; private createObjectReturnType; private getReturnTypename; private createMutation; }