[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 }

} )
db.foo.save( { a :

{ b : "B", c: 2 }

} )
db.foo.save( { a :

{ b : "C", c: 1 }

, d : 1 } )

listing the distinct values for a.b should return

{"A", "B", "C"}

Related thread on the mongodb-user mailing list:
http://groups.google.com/group/mongodb-user/browse_thread/thread/ef36c8d2d83a2de2

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

Generated at Thu Feb 08 02:53:06 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.