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 <[email protected]> Authored: Tue Mar 25 16:45:28 2014 -0400 Committer: BigBlueHat <[email protected]> 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}); } }
