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 Additional Update Operators #9
Comments
:'( $pushAll doesn't work, why deprecated? I have a list of products with tags, validation looks like this (coffeescript):
Am I doing something wrong? |
@Lepozepo, are you using an old version of mongo? If you're using 2.4+, $pushAll is deprecated and you should use $push with $each instead. Minimongo supports $each, too. |
Oh wow, I didn't know that, lol. But now when I do $pullAll it resets the entire document >_<. I tried that with an each as well but got nothing :/. Looks like I have Mongo 2.4.6. Thanks for helping me out! |
@Lepozepo, $pullAll handling was an issue and is now fixed. I also revised the handling of $pushAll so that the ($pull does not support $each and $pullAll is still correct for pulls) |
Sweet, thanks! |
Any chance to get a quick doc update for |
This is to track progress adding support for additional update operators beyond
$set
and$unset
.The following operators need to be parsed and understood (but not necessarily validated) by the validation and cleanup functions in simple-schema:
The following operators need to be validated as best they can by simple-schema:
And all except $setOnInsert will probably need some extended validation added in the collection2 package.
The text was updated successfully, but these errors were encountered: