distinct
List unique values of a field.
Example
db.users.distinct("country")Exercise
Unique values.
db.users.("country")
Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.
List unique values of a field.
db.users.distinct("country")Unique values.
db.users.("country")
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.