I am doing a Mini project in MongoDB recently. I am trying to find out the distinct values of field using the db.collections.distinct(<field>)
command.
The above command retrieves all the distinct values of the given field inside an array. But as I have 12k documents all the values are not getting displayed in my console.
This is the output I get.. how to view the entire result?
I have search the internet and documentation but I was not able to get a proper answer.