Skip to content
Snippets Groups Projects
Commit d22c38f0 authored by Tom Käsler's avatar Tom Käsler
Browse files

add view to fetch questions via ids

parent 47aa07e7
Branches
Tags
No related merge requests found
...@@ -88,6 +88,9 @@ ...@@ -88,6 +88,9 @@
}, },
"preparation_question_ids_by_session_and_subject": { "preparation_question_ids_by_session_and_subject": {
"map": "function(doc) { if (doc.type == 'skill_question' && doc.questionVariant == 'preparation') { emit([doc.sessionId, doc.subject], doc._id); }}" "map": "function(doc) { if (doc.type == 'skill_question' && doc.questionVariant == 'preparation') { emit([doc.sessionId, doc.subject], doc._id); }}"
},
"questions_by_ids":{
"map":"function(doc) { if (doc.type == 'skill_question') { emit(doc._id, doc); }}"
} }
} }
} }
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