Du kan bara göra:
db.collection.distinct("children.child_name");
I ditt fall returnerar den:
[ "John", "Anna", "Kevin" ]
Du kan bara göra:
db.collection.distinct("children.child_name");
I ditt fall returnerar den:
[ "John", "Anna", "Kevin" ]