所以我在我的mongodb中有以下数据:
{
"_id": {
"$oid": "5b479eca54159200044ca729"
},
"name": "note1",
"content": 118
}
{
"_id": {
"$oid": "5b479eca54159200044ca729"
},
"name": "note2",
"content": 122
}
{
"_id": {
"$oid": "5b479eca54159200044ca729"
},
"name": "note3",
"content": 920
}
例如,如何获取note3的内容?或者如果用户想要获取note2内容?你知道吗
所以,为了更好地解释:
如果我输入console note2,我应该得到122,如果我输入note3,我应该得到920作为输出。你知道吗
希望这有帮助。你知道吗
相关问题 更多 >
编程相关推荐