3gbGd7XOFD8B0FMzeaskvo changeset

Changeset366366643833 (b)
ParentNone (a)
ab
0+{
0+   "_id": "_design/foo",
0+   "_rev": "4-4735bc15354950518380a406775ba995",
0+   "language": "javascript",
0+   "views": {
0+       "recent_posts": {
0+           "map": "function(doc) { emit([doc.author, doc.date], doc.body); }"
0+       }
0+   },
0+   "rewrites": [
0+       {
0+           "from": ":user_name/recent_posts",
0+           "to": "_view/recent_posts",
0+           "method": "GET",
0+           "query": {
0+               "descending": true,
0+               "limit": 20,
0+               "startkey": [
0+                   ":user_name",
0+                   {
0+                   }
0+               ],
0+               "endkey": [
0+                   ":user_name"
0+               ]
0+           }
0+       }
0+   ]
0+}
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
--- Revision None
+++ Revision 366366643833
@@ -0,0 +1,29 @@
+{
+ "_id": "_design/foo",
+ "_rev": "4-4735bc15354950518380a406775ba995",
+ "language": "javascript",
+ "views": {
+ "recent_posts": {
+ "map": "function(doc) { emit([doc.author, doc.date], doc.body); }"
+ }
+ },
+ "rewrites": [
+ {
+ "from": ":user_name/recent_posts",
+ "to": "_view/recent_posts",
+ "method": "GET",
+ "query": {
+ "descending": true,
+ "limit": 20,
+ "startkey": [
+ ":user_name",
+ {
+ }
+ ],
+ "endkey": [
+ ":user_name"
+ ]
+ }
+ }
+ ]
+}