R
Refine
D
Refine
โข
4y ago
dramatic-maroon
hasura-nhost-filter
Nhost with Hasura
. contains filter is converting to
_like filter
Refine
Join
6,201
Members
View on Discord
Was this page helpful?
Yes
No
O
Omer
โข
9/9/22, 12:27 PM
Hey
@Shyamili
@aliemirs
,
hmm i think the problem is here
https://github.com/pankod/refine/blob/next/packages/nhost/src/dataProvider/index.ts#L64
GitHub
refine/index.ts at next ยท pankod/refine
Build your React
-based CRUD applications
, without constraints
.
- refine
/index
.ts at next
ยท pankod
/refine
D
dramatic-maroon
OP
โข
9/9/22, 12:28 PM
Thanks for the reply
. This is the exact issue I am facing
. I have a json fileld
, but I can
't filter with contains
. Is there any solution
?
D
dramatic-maroon
OP
โข
9/9/22, 12:44 PM
or how we can filter with nested fields like this
"
w
h
e
r
e
:
{
q
u
e
s
t
i
o
n
_
g
r
a
d
e
s
:
{
g
r
a
d
e
_
i
d
:
{
_
e
q
:
"
"
}
}
}
"
?
E
efficient-indigo
โข
9/9/22, 12:46 PM
You can use dot notation in your field value like
D
dramatic-maroon
OP
โข
9/9/22, 12:48 PM
Not working
D
dramatic-maroon
OP
โข
9/9/22, 12:49 PM
{
"question
_grades
.grade
_id
"
:
{
"
_eq
"
:
"763d0c3d
-aabd
-4fe3
-91b1
-8579b3949cdd
"
}
}
D
dramatic-maroon
OP
โข
9/9/22, 12:49 PM
this is the gql convertion in network
D
dramatic-maroon
OP
โข
9/9/22, 12:50 PM
my code is
{
field
:
'question
_grades
.grade
_id
'
,
operator
:
'eq
'
,
value
:
'763d0c3d
-aabd
-4fe3
-91b1
-8579b3949cdd
'
,
}
,
E
efficient-indigo
โข
9/9/22, 12:53 PM
Can you check your refine
-core version
?
E
efficient-indigo
โข
9/9/22, 12:53 PM
Nested filters are relatively new feature to nhost and hasura
E
efficient-indigo
Can you check your refine-core version?
E
efficient-indigo
โข
9/9/22, 12:54 PM
Oops
, please also check the data provider versions
E
efficient-indigo
โข
9/9/22, 12:54 PM
And update to latest please
D
dramatic-maroon
OP
โข
9/9/22, 1:00 PM
Sure
. Thank you
E
efficient-indigo
Nested filters are relatively new feature to nhost and hasura
D
dramatic-maroon
OP
โข
9/9/22, 1:02 PM
"
@pankod
/refine
-core
"
:
"
^3
.18
.0
"
,
E
efficient-indigo
โข
9/9/22, 1:04 PM
It
's a bit old version
Can you try again after updating
and your data provider
to latest
?
E
efficient-indigo
โข
9/9/22, 1:05 PM
This should resolve the issue
, waiting for the good news from you
D
dramatic-maroon
OP
โข
9/9/22, 1:06 PM
Sure
.
.
D
dramatic-maroon
OP
โข
9/9/22, 2:53 PM
It worked
.
.
.
.Thank you so much
O
Omer
โข
9/9/22, 2:58 PM
question_grades.grade_id
question_grades.grade_id
@pankod/refine-core
@pankod/refine-core
@pankod/refine-nhost
@pankod/refine-nhost