mongoose获取数据,缺少_id
调用.find({})方法获取mongoDB的数据
数据库里的数据是这样的
{
"_id" : "1",
"titie" : "机械战警",
"language" : "英语",
"country" : "美国",
"doctor" : "何塞·帕迪里亚",
"year" : "2008",
"summary" : "机械战警简介",
"flash" : "/videos/2014061151.swf",
"poster" : "/images/logo.png",
"meta" : ""
}
但是获取到的数据是
{
"titie" : "机械战警",
"language" : "英语",
"country" : "美国",
"doctor" : "何塞·帕迪里亚",
"year" : "2008",
"summary" : "机械战警简介",
"flash" : "/videos/2014061151.swf",
"poster" : "/images/logo.png",
"meta" : ""
}
缺少_id字段,求助怎么解决!!!