rethinkdb - How to find a particular object in a array -
how find particular object in array.
below code
r.table("tablename").filter( function(doc){ return r.expr(["value1","value2"]); });
you have forgotten add .contains in return statement. try rectified 1 -
r.table("tablename").filter( function(doc){ return r.expr(["value1","value2"]).contains(doc("somekey")); });
Comments
Post a Comment