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

Popular posts from this blog

service - Android MediaPlayer calls onCompletion before it already finished -

javascript - Training Neural Network to play flappy bird with genetic algorithm - Why can't it learn? -

asp.net mvc - how to pass 'true'/'false' data from Controller to View using jquery for bootstrap validator in MVC -