for $question in collection("faqs"),
$answer in collection("answers")
where $question.question_id eq $answer.question_id
return {
"question" : $question.title,
"answer score" : $answer.score
}
Results:
{
"question" : "MySQL and NoSQL: Help me to choose the righ
t one",
"answer score" : 17
}
{
"question" : "MySQL and NoSQL: Help me to choose the righ
t one",
"answer score" : 1
}
{
"question" : "Redis, CouchDB or Cassandra?",
"answer score" : 34
}
{
"question" : "Full-text search in NoSQL databases",
"answer score" : 6
}
{
"question" : "Find CouchDB docs missing an arbitrary fiel
d",
"answer score" : 0
}
{
"question" : "Find CouchDB docs missing an arbitrary fiel
d",
"answer score" : 1
}