Skip to content

Instantly share code, notes, and snippets.

@scalabilitysolved
Created February 23, 2014 16:00
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 scalabilitysolved/9173205 to your computer and use it in GitHub Desktop.
Save scalabilitysolved/9173205 to your computer and use it in GitHub Desktop.
function (doc, meta) {
if(meta.type == "json") {
if(doc.doc_type == "user") {
if(doc.offers) {
emit(doc.offers);
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment