blob: 006c1ea17c63bb6fc8907d57b6388eda0a7607fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
{
"_id": "_design/InviteCode",
"language": "javascript",
"views": {
"by__id": {
"map": " function(doc) {\n if ((doc['type'] == 'InviteCode') && (doc['_id'] != null)) {\n emit(doc['_id'], 1);\n }\n }\n",
"reduce": "_sum"
},
"by_invite_code": {
"map": " function(doc) {\n if ((doc['type'] == 'InviteCode') && (doc['invite_code'] != null)) {\n emit(doc['invite_code'], 1);\n }\n }\n",
"reduce": "_sum"
},
"by_invite_count": {
"map": " function(doc) {\n if ((doc['type'] == 'InviteCode') && (doc['invite_count'] != null)) {\n emit(doc['invite_count'], 1);\n }\n }\n",
"reduce": "_sum"
},
"all": {
"map": " function(doc) {\n if (doc['type'] == 'InviteCode') {\n emit(doc._id, null);\n }\n }\n"
}
},
"couchrest-hash": "83fb8f504520b4a9c7ddbb7928cd0ce3"
}
|