I have the next document in Rethinkdb.
{
"id": 678 ,
"author": 0 ,
"body": "<p>text</p>" ,
"category": "category" ,
"optionlist": {
"option_A": "text 1" ,
"option_B": "text 2" ,
"option_C": "text 3"
} ,
"rank": 4 ,
"array": [
"tag 1" ,
"tag 2"
] ,
}
I require a query in rethinkdb where you can get as an exit only this:
"option_A": "text 1"
and another query where you can get as an exit only this:
"tag 1"
Something like this?
r.db('myDataBase').table('myTable').pluck('id','optionlist').filter({article_id:678})