Created
June 10, 2013 15:55
-
-
Save pegli/5749878 to your computer and use it in GitHub Desktop.
emit doc keys in couchdb map function
This file contains 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
function(doc) { | |
for (var i in doc) { | |
if (i[0] != '_' && doc.hasOwnProperty(i)) { | |
emit(parseInt(i), null); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment