This commit is contained in:
Benjamin Toby
2025-05-12 10:47:47 +01:00
parent 07c2186b98
commit 674af34355
9 changed files with 268 additions and 231 deletions
+6
View File
@@ -949,6 +949,7 @@ export type ServerQueryParam<T extends {
[k: string]: any;
}> = {
selectFields?: string[];
omitFields?: string[];
query?: ServerQueryQueryObject<T>;
limit?: number;
page?: number;
@@ -1003,6 +1004,11 @@ export type ServerQueryParamsJoin<Table extends string = string, Field extends o
alias?: string;
count?: boolean;
})[];
omitFields?: (keyof Field | {
field: keyof Field;
alias?: string;
count?: boolean;
})[];
operator?: (typeof ServerQueryOperators)[number];
};
export type ServerQueryParamsJoinMatchObject<Field extends object = {