[CXX-443] Could not update an object with "$something" Created: 09/Dec/14 Updated: 06/Apr/23 Resolved: 12/Dec/14 |
|
| Status: | Closed |
| Project: | C++ Driver |
| Component/s: | None |
| Affects Version/s: | legacy-0.0-26compat-2.6.5 |
| Fix Version/s: | 0.1.0 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Clement OLIVA | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Description |
|
Hello, I am currently using the C++ driver in order to insert/update objects in a collection. I have the need to insert a pipeline in the object. Using the insert it works, but when I try to do an update, it fails telling me:
Did you have any clue how can I make it works ? Here is an example of C++ code for the issue:
|
| Comments |
| Comment by Clement OLIVA [ 10/Dec/14 ] |
|
Hello, Thank you for your reply. I will then check with the mongodb-user mailing list for a possible workaround. Thank you. |
| Comment by Andrew Morrow (Inactive) [ 09/Dec/14 ] |
|
Hi - This is not actually an error with the driver, but is an error being returned from the server, which does not allow field names to start with dollar signs: http://docs.mongodb.org/manual/release-notes/2.6-compatibility/#updates-enforce-field-name-restrictions You may want to ask on the mongodb-user mailing list to discuss workarounds for storing this type of data. Thanks, |