[SERVER-127] distinct value command Created: 05/Jul/09 Updated: 12/Jul/16 Resolved: 09/Sep/09 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Usability |
| Affects Version/s: | None |
| Fix Version/s: | 1.1.0 |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Eliot Horowitz (Inactive) | Assignee: | Eliot Horowitz (Inactive) |
| Resolution: | Done | Votes: | 9 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: |
| Description |
|
equivilant of select distinct( foo ) from bar |
| Comments |
| Comment by Eliot Horowitz (Inactive) [ 15/Sep/09 ] |
|
released in 1.1.0 |
| Comment by Niko Schmuck [ 02/Sep/09 ] |
|
Assuming the following objects in a collection: db.foo.save( { a : { b : "A", c: 1 } } ) } ) , d : 1 } ) listing the distinct values for a.b should return {"A", "B", "C"}
Related thread on the mongodb-user mailing list: |
| Comment by Eliot Horowitz (Inactive) [ 26/Aug/09 ] |
|
will be done as a command |
| Comment by Steve Yalovitser [ 24/Aug/09 ] |
|
I'll start on this one |