oglimmer/linky

View on GitHub
build/couchdb/linky/_design-users-curl.json

Summary

Maintainability
Test Coverage
{
  "_id": "_design/users",
  "language": "javascript",
  "views": {
    "byEmail": {
      "map": "function(doc) {\n  if(doc.type === 'user' && doc.email) {\n    emit(doc.email.toLowerCase(), doc);\n  }\n}"
    },
    "bySourceId": {
      "map": "function(doc) {\n  if(doc.type === 'user' && doc.source && doc.sourceId) {\n    emit(doc.source + doc.sourceId, doc);\n  }\n}"
    }
  }
}