LogoRobo.js
Framework

MigrationModelAccessor<T>

Interface: MigrationModelAccessor<T>

Model accessor for migrations (subset of full model API).

Type Parameters

Type Parameter
T extends { id: string; }

Properties

PropertyType
count(args?: { where: Record<string, unknown>; }) => Promise<number>
delete(args: { where: { id: string; }; }) => Promise<T>
deleteMany(args: { where: Record<string, unknown>; }) => Promise<number>
findMany(args?: { skip: number; take: number; where: Record<string, unknown>; }) => Promise<T[]>
findUnique(args: { where: { id: string; }; }) => Promise<T>
update(args: { data: Partial<T>; where: { id: string; }; }) => Promise<T>
updateMany(args: { data: Partial<T>; where: Record<string, unknown>; }) => Promise<number>

On this page