0
如何查找数组中的特定对象。如何查找数组中的特定对象
下面是我的代码
r.table("tablename").filter(
function(doc){
return r.expr(["value1","value2"]);
});
如何查找数组中的特定对象。如何查找数组中的特定对象
下面是我的代码
r.table("tablename").filter(
function(doc){
return r.expr(["value1","value2"]);
});
你忘了在return语句添加。载。尝试整流的 -
r.table("tablename").filter(
function(doc){
return r.expr(["value1","value2"]).contains(doc("someKey"));
});