Suppose I have a collection like:
{ "id": 1, "name": "jonas", }, { "id": 2, "name": "jonas", }, { "id":3, "name": "smirk", }
How do I get:
The number of different names, as in this case, 2
Different names, in this case, jonas and a smirk?
source share