Skip to content

Instantly share code, notes, and snippets.

@dodilp
Created February 22, 2014 00:05
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 dodilp/9146319 to your computer and use it in GitHub Desktop.
Save dodilp/9146319 to your computer and use it in GitHub Desktop.
function (doc) {
if(doc.type != null && doc.type == 'usersession') {
if(doc.location != null && doc.location == 'Toronto, Canada') {
emit(doc._id, doc.username)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment