couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rana Bunnni <rana_...@yahoo.se>
Subject CouchDB view(difficult issue)
Date Sun, 15 Sep 2013 11:58:45 GMT
Thank you so much,you are great.

I did it the following : but its not worked:
function(doc) {
  if(doc.type === "student"){
 var  name = doc.firstName; var courseName = doc.course; if (doc.type === "course" &&
doc.courseName === courseName){
emit(doc.courseName,doc);
}
}
} 
Can do explain where is my wrong ? and how can i fix it ?

Best regards
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message