couchbase reduce by date in node.js
问题 I have to make some code which filter active user with couchbase, node.js I have some users documents, and I made a view with the following coded : I made a view called "bydate" with the following code : function (doc, meta) { if(meta.type == 'json') { if(doc.type == 'user') { if (doc.lastUpdate){ emit(dateToArray(doc.lastUpdate),doc.name); } } } } I have to filter by day, month or year using the "group_level" setting in couchbase console , however I have unable to filter it properly on node