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.
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.
