Say I have this JSON (sample - a real-life example can be found at apple itunes rss feed) stored in a RethinkDB table called 'test':
{
"feed": {
"entry": [
{
"title": {
"label": "Some super duper app"
},
"summary": {
"label": "Bla bla bla..."
}
},
{
"title": {
"label": "Another awsome app"
},
"summary": {
"label": "Lorem ipsum blabla..."
}
}
]
}
}
How would I write a ReQL query in JavaScript in order to fetch the summary of all entries (entry
) which have title containing the string "xyz"? I expect the query result to return an array of matching entry objects, not an array of matching feed.
id
after matching this text? for example: get all the ids of docs whose feed->entry->title->label match "xyz"? is there anyway to do that? – Maori