Rough in filter param

This commit is contained in:
rijkvanzanten
2020-06-17 17:13:33 -04:00
parent 534b0364fc
commit 8011232e9c
3 changed files with 73 additions and 1 deletions

View File

@@ -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';