Skip to content

Instantly share code, notes, and snippets.

@JamesHayton
Created February 11, 2010 23:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JamesHayton/302134 to your computer and use it in GitHub Desktop.
Save JamesHayton/302134 to your computer and use it in GitHub Desktop.
{
"all": {
"map": "function(doc) {\n if (doc['couchrest-type'] == 'BlogUser') {\n emit(doc['_id'],1);\n }\n }"
},
"by_account": {
"map": "function(doc) {\n if ((doc['couchrest-type'] == 'BlogUser') && doc['account']) {\n emit(doc['account'], null);\n }\n}\n"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment