I'm trying to find and update an element within an array in a mongodb collection in a meteor app.
Every element in the array is an object that has an "_id" attribute, so I'm using mongo's '$' pointer:
Collection.update({things._id: currentThingId},{$set: {things.$.value: aGivenValue}});
However, it keeps throwing me an "Unexpected ." exception, pointing to the line where I use "things**.**_id". I followed mongodb documentation, so any chance meteor has some limitatiob with this mongo functionality?
{'things._id' : currentThingId}. You can't use.in a property name outside a string. - Kyll