1. db.collectionName.distinct( "yourFieldName");