Tsallaka zuwa abun ciki
Justice Tech School

distinct

List unique values of a field.

Example
db.users.distinct("country")

Exercise

Unique values.

db.users.("country")

Quiz Test

What does distinct return?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.