我可以查询文档内部的数组元素而不是查询整个文档吗?IE。我想接收数组元素,而不是文档。例如,我有这个:
{
blog: 'blog1',
comments:
[{user: 'Alice', text: 'bla-bla-bla'}, {user: 'Sarah', text: 'bla-bla-bla'}, ...]
},
{
blog: 'blog2',
comments:
[{user: 'John', text: 'bla-bla-bla'}, {user: 'Alice', text: 'bla-bla-bla'}, ...]
}
如何获取 Alice 写的评论列表?