How to use the _contains
JSONB operator?
#6375
-
I have a I found the And looked at the Postgres equivalent The example the Postgres docs supplies says What am I doing wrong in my query so Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@corysimmons - The
In your example, the escaping of the object is the issue. If you click on |
Beta Was this translation helpful? Give feedback.
@corysimmons - The
_contains
object can be written asIn your example, the escaping of the object is the issue. If you click on
Analyze
to see the generated SQL, you would notice that Hasura already escapes the given expression for_contains
operator and your usage makes it redundant and hence empty results.