UNPKG

@unly/ra-data-graphql-prisma

Version:
50 lines (49 loc) 1.04 kB
export declare type GetListParams = { filter: { [key: string]: any; }; pagination: { page: number; perPage: number; }; sort: { field: string; order: string; }; }; export declare type GetOneParams = { id: string; }; export declare type GetManyParams = { ids: string[]; }; export declare type GetManyReferenceParams = { target: string; }; export declare type CreateParams = { data: { [key: string]: any; }; }; export declare type UpdateParams = { id: string; data: { [key: string]: any; }; previousData: { [key: string]: any; }; }; export declare type UpdateManyParams = { ids: string[]; }; export declare type DeleteParams = { id: string; previousData?: { [key: string]: any; }; }; export declare type DeleteManyParams = { ids: string[]; }; export declare type Params = GetListParams | GetManyParams | GetManyReferenceParams | GetOneParams | CreateParams | UpdateParams | DeleteParams;