-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for $not filter operation #273
Comments
I don't see any reason why this feature could not be added. Please do feel free to create a PR for it.
Want to share what you are using? Is it in a state in which other could use it, or it's written more specifically for the purpose at hand? |
I've opened #274 with the initial implementation of the
Unfortunately, it's written for the purpose at hand. One of the main blocker would have been the support for mgo over mongo. |
To be honest, I am not sure how useful it is to be able to not the whole expression. The docs does state that |
So at least I am not against only implement For reference: https://docs.mongodb.com/manual/reference/operator/query/not/ |
Hello,
I am using Mongo DB as storage, but not rest-layer-mongo.
I want to implement Contains and Does Not Contain filters. For Contains I can use the
$regex
operation. However, for Does Not Contain I cannot use$regex
, since Go does not support lookarounds and regexes are currently validated with Go's standard library. Using$not
seems to me like the obvious alternative.Per #272 I know that there is not active development on this library, so this issue is to ask if a reason exist for this feature to be missing. If there is no such reason, I will implement it myself (including support for
$not
-ing a regex and$not
-ing a whole expression).#237 looks like an appropriate PR to model after
The text was updated successfully, but these errors were encountered: