Closed yilinjuang closed 3 years ago
Yes, I would love to see that.
So after an inspection everything except $mul
is already supported in some way. I'm adding $mul
now.
@frankyjuang With $mul
now in Meteor v2.2 I think this feature is done. Feel free to re-open if something is missing.
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?