以下是我在 mongodb 中的收藏 -
{
"_id" : ObjectId("50f69176904e1d66affec20d"),
"connections" : [
{
"id" : "50f651a3b58bba7fbec2f222"
},
{
"group" : "Roomies",
"users" : [
{
"id" : "50f651a3b58bba7fbec2f222"
},
{
"id" : "50f651b8b58bba7fbec2f223"
}
]
},
{
"group" : "College",
"users" : [
{
"id" : "50f651b8b58bba7fbec2f223"
},
{
"id" : "50f651a3b58bba7fbec2f222"
}
]
},
{
"group" : "Work",
"users" : [
{
"id" : "50f651a3b58bba7fbec2f222"
}
]
},
],
"email" : "arunko350@gmail.com",
"name" : "Arun"
}
在这里,我想获取 id = 50f651a3b58bba7fbec2f222 存在的所有组名。请帮我。我正在浏览 2 天的解决方案。