Closed tobiasjeckel closed 2 years ago
@tobiasjeckel, for your situation you will need to implement OR like this.
filter: { or: [ {vehicleNumber: {includesInsensitive: "123"} {vehicleName: {includesInsensitive: "merc"}} ] }
Thank you so much 💯 it works like this 😃
It seems I used the wrong syntax without an array as this was the syntax that was suggested to me by using the /graphiql explorer. Perhaps this could be improved in the documentation or the /graphiql explorer?
Thanks
@tobiasjeckel, complex filtering can be difficult to understand at times.
This is a great resource to understand what is possible so you can implement your own situation.
I had the same issue. The default way that graphiql presents the queries does not work. Glad I found this thread.
Hello, I am attempting to use the logical operator 'OR 'to chain several filters. Please view following example:
gives me following result:
I then wish to filter my query:
My expected result in this case would be to see the 'mercedes' and 'toyota' vehicle. However in this case I receive an empty result:
I have found that the 'OR' operator essentially behaves like an 'AND' operator and not like expected.
Am I using the filter correctly or is there a bug?
Thanks