stormy-gold
stormy-gold2y ago

Type issue for Filters

let arrFilter: CrudFilter[] = [] arrFilter.push({ operator: 'or', value: [ { operator: 'and', value: [ { field: 'subject_incharge_id', operator: 'eq', value: user?.id, }, { field: 'status', operator: 'ne', value: 'Draft', }, ], }, { operator: 'and', value: [ { field: 'created_by', operator: 'eq', value: user?.id, }, ], }, ], }) I am getting filter not supported error I am using nhost - Hasura as my data provider what should be the type of variable given for both Logical and conditional Filters? The type CrudFilter is giving the issue I guess.
3 Replies
quickest-silver
quickest-silver2y ago
Thank you 🙏 I will investigate
stormy-gold
stormy-gold2y ago
👍
quickest-silver
quickest-silver2y ago
@Shyamili Hi again, i tried to reproduce your issue but i didn't face any problem. https://stackblitz.com/edit/refinedev-refine-uzbnm7?file=src/pages/posts/list.tsx can you give us more detail or can you reproduce the issue and share with us on stackblitz ? and what is the rest of the error?