Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Pull data from one couchdb doc via ids in another (Python)

function(doc) {
 if (doc.type == "user") {
  emit([doc._id,0],null);
 } else if(doc.type == "project") {
  emit([doc.username,doc._id],null);
 }
}
 
PREVIOUS NEXT
Tagged: #Pull #data #couchdb #doc #ids
ADD COMMENT
Topic
Name
3+9 =