Mongo DB

자주 쓰는 mongoose method

Hot Dobby 2021. 3. 29. 17:58

db.collection.distinct(field, query, options)

Finds the distinct values for a specified field across a single collection or view and returns the results in an array.