New upsert fails with $push and $each #1492
Closed
Comments
Hi @mcbain. This actually appears to be a limitation of minimongo's implementation of modifiers, which the
I'll look into it to see if this can be easily fixed. Thanks for the report and the clear reproduction! |
The real problem is that happens also at server side, where {upsert:true} worked before. |
Good point about Meteor not implementing the new Thanks for writing these tests, too! I'd like to include them in Meteor, though you'll have to accept our CLA first: https://contribute.meteor.com/ |
glasser
added a commit
that referenced
this issue
Oct 18, 2013
Test adapted by mcbain's test from #1492.
I included your tests as well. Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Collection.update works as expected, but new upsert not. It
simply pushes the whole element {"$each":["A","B","C"],"$slice":-3} to the elements array.
The text was updated successfully, but these errors were encountered: