[OData] Enable NOT filter operator
AnsweredAccording to the OData specifications, there is a number of Filter-query perators you can use.
https://www.odata.org/documentation/odata-version-2-0/uri-conventions/
Mentioned in the list is the NOT operator for Logical negation.
Trying to use this operator results in an error that states that it is not yet implemented.
What is your wish?
I wish to use the NOT-operator in OData filter queries.
What is the problem you encounter?
Using NOT results in an error, the spec indicates it should be useable.
Why do you want this wish?
Specifically I'd like to be able to use statements like 'not startswith' to easily exclude certain entries.
Do you have a workaround? And if so, what is it?
Exhaustively write out all the startswith-clauses that _may_ be used, and omit the single startswith that may not be used. Obviously this is a lot more work.
How would you ideally solve the problem?
Let me use the NOT operator
How big is the problem on a scale from 1 to 5?
1
-
This is a bug and has been added to our backlog.
0 -
Hi CV,
Thanks for sharing your wish. Unfortunately, I see that the answer given by Koen is not 100% correct.
This issue is not a bug, but it's something we have not implemented in OData. However, the issue is not a priority on our current product roadmap. We will keep an eye on this wish to see if it gains more votes, though.My apologies for the confusion.
0
Please sign in to leave a comment.
Comments
2 comments