Created
August 29, 2014 18:45
-
-
Save ajcrites/c5267566875098f88fc3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Pipe Couch query for consumption by client | |
db.get(document) | |
.pipe(JSONStream(["rows", true, "value"], function (row) { | |
row.special_property = createSpecialProperty(row); | |
return row; | |
}) | |
.pipe(JSONStream.stringify()) | |
.pipe(response); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment