我在Mongo有一个集合,其中的记录与此类似:
{ "id": NumberLong(141242), "name": "John Doe", "language": "en" }
{ "id": NumberLong(3556332), "name": "Mark Zuckerberg", "language": "jp" }
{ "id": NumberLong(124), "name": "Abigail Fidler", "language": "cn" }
{ "id": NumberLong(325262351), "name": "Joe Parker", "language": "jp" }
{ "id": NumberLong(98798), "name": "John Bush", "language": "en" }
我希望从该系列中选择所有独特的语言。
{ "language": "en" }
{ "language": "jp" }
{ "language": "cn" }
在Mongo中有什么办法吗?
答案 0 :(得分:1)