我正在从数据库中获取文档并使用 db[TABLE_NAME].find({}).limit(2) 但我也打算获取“userID”引用的外键中的文档
{
"_id" : ObjectId("515f84883f71d6bcb1c41a55"),
"home" : "somehome",
"userID" : ObjectId("515f7db83f71d6bcb1c41a49")
}
{
"_id" : ObjectId("515f84883f71d6bcb1c41a56"),
"home2" : "somehome2",
"userID" : "515f7db83f71d6bcb1c41a4a"
}
{
"_id" : ObjectId("515f84883f71d6bcb1c41a54"),
"home3" : somehome2,
"userID" : "515f7db83f71d6bcb1c41a48"
}