summaryrefslogtreecommitdiff
path: root/puppet/modules/site_couchdb/files/designs/users/User.json
blob: c99666cb5b875306bf9030165ba7f7d10088f35e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{
  "_id": "_design/User",
  "language": "javascript",
  "views": {
    "by_login": {
      "map": "                function(doc) {\n                  if ((doc['type'] == 'User') && (doc['login'] != null)) {\n                    emit(doc['login'], 1);\n                  }\n                }\n",
      "reduce": "_sum"
    },
    "all": {
      "map": "                function(doc) {\n                  if (doc['type'] == 'User') {\n                    emit(doc._id, null);\n                  }\n                }\n"
    },
    "by_created_at": {
      "map": "                function(doc) {\n                  if ((doc['type'] == 'User') && (doc['created_at'] != null)) {\n                    emit(doc['created_at'], 1);\n                  }\n                }\n",
      "reduce": "_sum"
    }
  },
  "couchrest-hash": "3bdbcd85b928ad911e0c89a8924e015c"
}