mirror of
https://github.com/directus/directus.git
synced 2026-04-03 03:00:39 -04:00
Rough in filter param
This commit is contained in:
@@ -1,9 +1,18 @@
|
||||
export type Query = {
|
||||
fields?: string[];
|
||||
sort?: Sort[];
|
||||
filter?: Filter[];
|
||||
};
|
||||
|
||||
export type Sort = {
|
||||
column: string;
|
||||
order: 'asc' | 'desc';
|
||||
};
|
||||
|
||||
export type Filter = {
|
||||
column: string;
|
||||
operator: FilterOperator;
|
||||
value: null | string | number;
|
||||
};
|
||||
|
||||
export type FilterOperator = 'eq' | 'neq' | 'in' | 'nin' | 'null' | 'nnull';
|
||||
|
||||
Reference in New Issue
Block a user