Saved filter - OR operator #18470
Unanswered
antkachenko
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear colleagues,
I'm trying to create filter that will show me all records marked by tags "1" and "2". Using the following request no records being returned:
{
"tag": [
"1",
"2"
]
}
As I understood what's becouse it searches for the records with both tags. But for the second variant it returnes all records including those have no tag at all.
{
"$or": [
{"tag": "1"},
{"tag": "2"}
]
}
What am I doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions