[JAVA-1418] Java Driver can not update embedded array document Created: 01/Sep/14 Updated: 01/Sep/14 Resolved: 01/Sep/14 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | API |
| Affects Version/s: | 2.12.3 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Tao Lin | Assignee: | Ross Lawley |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
this command: , { <update operator>: { "array.$.field" : value } } ) Exception in thread "main" java.lang.IllegalArgumentException: Document field names can't have a . in them. (Bad Key: 'dimensionArray.$.v') |
| Comments |
| Comment by Tao Lin [ 01/Sep/14 ] | |||||||||||
|
It's my mistake, I loss the operator "$set", Please close this issue.thanks for your reply | |||||||||||
| Comment by Ross Lawley [ 01/Sep/14 ] | |||||||||||
|
Hi bingyunxl a field key cannot contain a `.` so it looks like something is amiss with your update. The documentation has an example of Updating documents in an array which in Java looks like:
Can you provide an example of your java code? |