Yes, you can’t refer to other fields in the modifier. You’ll have to use db.eval.
More Related Contents:
- MEAN app vs. Mongo service local in Angular2
- Find objects between two dates MongoDB
- MongoDB: Combine data from multiple collections into one..how?
- MongoDB: Is it possible to make a case-insensitive query?
- How to update the _id of one MongoDB Document?
- Multiple join conditions using the $lookup operator
- Aggregate $lookup Total size of documents in matching pipeline exceeds maximum document size
- How to Model a “likes” voting system with MongoDB
- Overflow sort stage buffered data usage exceeds internal limit
- Slow pagination over tons of records in mongodb
- MongoDB – paging
- MongoDB query with an ‘or’ condition
- mongo.exe not installed in Version 6.0.0
- multiple instances of Mongo DB on same server
- How can I share MongoDB collections between Meteor apps?
- How to sum every fields in a sub document of MongoDB?
- Where does mongodb stand in the CAP theorem?
- MongoDB: how to parse date in 3.6 mongoDb version?
- MongoDB – What about Decimal type of value?
- MongoDB – Querying between a time range of hours
- MongoDB $or query
- Delete a key from a MongoDB document using Mongoose
- Can mongodb be used as an embedded database?
- convert iso date to timestamp in mongo query
- Using $slice operator to get last element of array
- MongoDB : aggregation framework : $match between fields
- How to check if an array field contains a unique value or another array in MongoDB?
- MongoDB index/RAM relationship
- MongoDB Single Document size limit is 16MB
- mongodb aggregate query isn’t returning proper sum on using $sum