- db.vehicle.distinct(“category”)
- db.vehicle.unique(“category”)
- db.vehicle.distinct(“category”).count()
- db.vehicle.distinct(“category”).length
You would like to know how many different categories you have. Which query will best get the job done?
June 25, 2021June 25, 2021
0 Comment