[SERVER-1069] Enforcing unique values within a document Created: 30/Apr/10 Updated: 03/May/10 Resolved: 03/May/10 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Question | Priority: | Minor - P4 |
| Reporter: | Kyle Banker | Assignee: | Eliot Horowitz (Inactive) |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: |
| Description |
|
Should it be possible to enforce uniqueness of an object within an array within a single document using a unique index? For instance: db.foo.save( { a : [ { b : 1 } ] } ) ); // This succeeds. Should it fail? } }); |
| Comments |
| Comment by Eliot Horowitz (Inactive) [ 03/May/10 ] |
|
See SERVER-1068 |