When running modifier operations on an embedded object you would often run into situations where in the field name needs to be generated/referenced dynamically when the query runs.
Lets take an example, assume we have a db testing and in that we have a collection testing, in that lets insert some documents like
db.testing.save({key:1,data:{0:1,1:2,2:3}})using the following commands
Recent comments
13 weeks 1 day ago
16 weeks 4 days ago
31 weeks 1 day ago
33 weeks 3 days ago
42 weeks 5 hours ago
1 year 21 weeks ago
1 year 48 weeks ago
1 year 49 weeks ago