how to determine the distinct values for a field given a condition in mongodb code example
Example: find distinct in mongodb
db.inventory.distinct( "item.sku", { dept: "A" } )
db.inventory.distinct( "item.sku", { dept: "A" } )