如何与多个条件加入,并在反思-DB使用聚合函数加盟RethinkDB
r.table("yourtable").get(id).innerJoin(
r.table("secondtable"),function (up, upp) {
return user_profile("mID")
}).map({
uId: r.row("left")("userId"),
mId: r.row("left")("memberId"),
pId: r.row("right")("projectId"),
nodeId: r.row("right")("nodeId"),
pri: r.row("right")("priority")
})
.min("priority");
任何错误味精? – Cedias