I have a Postgres database with the following schema:
"article_id" type: text
"recommendations" type: text[]
An example row would look like this:
"xxxx1", ["xxxx2", "xxxx3", "xxxx5"]
Now in Hasura I can filter on recommendations for an article_id like this for example:
query get_recommendations {
recommendations(limit: 10, where: {article_id: {_eq: "xxxx1"}}) {
recommendations
}
}
This would give me ["xxxx2", "xxxx3", "xxxx5"]
But how would I filter specific recommendations from the recommendations array?
Basically I would like to get recommendations for article_id "xxxx1", but not recommendation "xxxx3".
The result should be ["xxxx2", "xxxx5"].
I tried all combinations of filters in Hasura, but this doesn't seem to be possible? Can you help me here?