Methods
distinct()
The distinct() method is used to interact with collections in MongoDB.
distinct()
The distinct() method is used to interact with collections in MongoDB.
Syntax
db.collection.distinct(...)
Example
db.users.distinct(...)The distinct() method is used to interact with collections in MongoDB.
The distinct() method is used to interact with collections in MongoDB.
db.collection.distinct(...)
db.users.distinct(...)