meteor / meteor-feature-requests

A tracker for Meteor issues that are requests for new functionality, not bugs.
Other
89 stars 3 forks source link

Allow more collection update operations #403

Closed yilinjuang closed 3 years ago

yilinjuang commented 3 years ago

Right now only a handful of update operations are allowed (https://github.com/meteor/meteor/blob/5b0f004e6c57f0cf8c1313646790cfb42b7065fa/packages/allow-deny/allow-deny.js#L369). More useful operations have been added to mongodb, e.g. $currentDate, $max, $min (https://docs.mongodb.com/manual/reference/operator/update/#id1). Shall we allow more operations?

StorytellerCZ commented 3 years ago

Yes, I would love to see that.

StorytellerCZ commented 3 years ago

So after an inspection everything except $mul is already supported in some way. I'm adding $mul now.

StorytellerCZ commented 3 years ago

@frankyjuang With $mul now in Meteor v2.2 I think this feature is done. Feel free to re-open if something is missing.