couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject [26/50] documentation commit: updated refs/heads/import-master to 0efce91
Date Sat, 26 Apr 2014 19:29:00 GMT
put back JSON return value in collation example

Originally removed in 0f7be287d6a9358d960beb17b16ad7b5e20bd360


Project: http://git-wip-us.apache.org/repos/asf/couchdb-documentation/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-documentation/commit/b461dac7
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-documentation/tree/b461dac7
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-documentation/diff/b461dac7

Branch: refs/heads/import-master
Commit: b461dac78b36ab7fd76f2c27e8ad87f748af791f
Parents: b9b7c74
Author: BigBlueHat <byoung@bigbluehat.com>
Authored: Tue Mar 25 16:45:28 2014 -0400
Committer: BigBlueHat <byoung@bigbluehat.com>
Committed: Tue Mar 25 16:45:28 2014 -0400

----------------------------------------------------------------------
 src/couchapp/views/collation.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-documentation/blob/b461dac7/src/couchapp/views/collation.rst
----------------------------------------------------------------------
diff --git a/src/couchapp/views/collation.rst b/src/couchapp/views/collation.rst
index 06c4c6d..9c2f5c7 100644
--- a/src/couchapp/views/collation.rst
+++ b/src/couchapp/views/collation.rst
@@ -28,7 +28,7 @@ property serves as the key, thus the result will be sorted by ``LastName``:
 
   function(doc) {
     if (doc.Type == "customer") {
-      emit(doc.LastName, null);
+      emit(doc.LastName, {FirstName: doc.FirstName, Address: doc.Address});
     }
   }
 


Mime
View raw message