Having trouble with "_and" & "_or" queries #6384
-
Hi everyone. I'm getting unexpected behavior from filtering queries I'm making using the _and & _or operators. Take the following query:
As written, I would expect this query to return all records with...
I have the following record that should be returned if this works correctly:
However, I get an empty set. If I remove the {status} filter I do get the record back. It seems it's doing an AND instead of an OR within the last piece. What am I doing wrong? Thanks in advance for any help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I found my problem. _or filters must be surrounded with square brackets as an array. These are not inserted on the GraphiQL interface which is what caused my confusion - they must be added manually. |
Beta Was this translation helpful? Give feedback.
I found my problem. _or filters must be surrounded with square brackets as an array. These are not inserted on the GraphiQL interface which is what caused my confusion - they must be added manually.