假设我确实有这样的文件:
{
_id: "cow",
comments: [
{user: "karl", comment: "I like cows.", at: /*a date*/},
{user: "harry", comment: "Cows are the best.", at: /*a date*/}
]
}
现在我想收集"karl"
我数据库中留下的所有评论。或者只是某个日期的那些。已编入索引,我该"comments"
如何查询?