I'm using "$" positional per update in a project, It was working without any problem in Ubuntu (mongoDB 2.4), I cloned the project into Archlinux and i get this error on db.collection.update:
{ [MongoError: The positional operator did not find the match needed from the query. Unexpanded update: rounds.0.groups.0.teams.$.standing] name: 'MongoError', code: 16837, err: 'The positional operator did not find the match needed from the query. Unexpanded update: rounds.0.groups.0.teams.$.standing' }
while I'm sure that the find query always match only one object in mongoDB.
Seems the last version of mongoDB broke backward compatibility of this functionality.
- is duplicated by
-
SERVER-16409 Updates against paths composed with array index notation and positional operator can insert an embedded document
- Closed
- is related to
-
SERVER-14837 Positional Operator matching wrong nested document
- Closed
-
SERVER-16409 Updates against paths composed with array index notation and positional operator can insert an embedded document
- Closed