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

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -