数据如下:
{
"_id" : { "$oid" : "546b79a2e4b0f7bfbaa97cc7" },
"title" : "Eyewitness: Highlands, Scotland",
"description" : "Photographs from the Guardian Eyewitness series",
"timeStamp" : "14/11/2014",
"category" : "news",
"url" : "http://www.theguardian.com/world/picture/2014/nov/14/1",
"source" : "http://www.theguardian.com/",
"mainStory" : "\n",
"keywords" : [ "Wildlife", "Scotland" ]
}
但是当我使用以下命令查找某些内容时,就会出现错误
db.guardian.find({ "_id": {"$oid": '546b79a2e4b0f7bfbaa97cc7'}})
我如何找到具有特定$oid
的文档。