Passing values to a map function - CouchDB
问题 I was wondering whether its possible to pass values to a map function in couchDB design document. For Example: In the code below is it possible to pass a value that has been entered by the user and use that value to run the map function. Maybe I can pass users UserName when they login and then display the view based on the map function. function(doc) { if(doc.name == data-Entered-By-User) { emit(doc.type, doc); } } Thank you in advance. Regards 回答1: This is a common mistake in CouchDB when