Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "_id": "_design/logs",
- "_rev": "5-5abe8844458d678f25076e780764c829",
- "language": "javascript",
- "views": {
- "all": {
- "map": "function (doc) {\n if (doc.type === 'log') {\n return emit(doc.name, doc);\n }\n }"
- },
- "user": {
- "map": "function (doc, user) {\n if (doc.type === 'log' && doc.user && doc.user === user) {\n return emit(doc.name, doc);\n }\n }"
- }
- }
- }
Add Comment
Please, Sign In to add comment