Hi,
I checked the MongoDB docs but couldn't find the answer to this question.
Is the array index position guaranteed to remain same if you only do $push operations on it?
Example query
db.example.findAndModify({query: { name: "test"},
update: { $push: { "mapping.s": "free" }},
upsert: true,
new: true})
Can the application use the index of the array reliably in this case when fetching the whole doc based on its name?
I am using MongoDB 3.2.x version
Thanks.