Skip to content
Snippets Groups Projects
Commit 8e1f7050 authored by Christoph Thelen's avatar Christoph Thelen
Browse files

Only emit properties that are required

parent 94435047
1 merge request!11Add view that returns full answers by question id
......@@ -21,7 +21,7 @@
"map":"function(doc) { if (doc.type == 'skill_question_answer') { emit(doc.questionId, doc._id); }}"
},
"by_questionid_piround":{
"map":"function(doc) { if (doc.type == 'skill_question_answer') { emit([doc.questionId, doc.piRound], doc); }}"
"map":"function(doc) { if (doc.type == 'skill_question_answer') { emit([doc.questionId, doc.piRound], { answerText: doc.answerText, user: doc.user }); }}"
}
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment