【发布时间】:2015-07-05 21:27:27
【问题描述】:
举个例子
r .table('posts')
.get(100)
.merge(function (post) {
return {
comments: r.table('comments').getAll(post('id'),
{index: 'postId'}).coerceTo('array')
}
})
.pluck({"comments": ["id", "created_on"]});
如何进一步过滤 cmets 以仅返回给定博客文章中特定用户的 cmets。 IE。获取博文 100 并通过 user_name == 'darth' 返回其 cmets
非常感谢提示
【问题讨论】:
标签: rethinkdb