We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 30e335d + 9623797 commit fa6fb3aCopy full SHA for fa6fb3a
app/addons/documents/index-editor/reducers.js
@@ -16,7 +16,7 @@ import Helpers from '../helpers';
16
17
const defaultMap = 'function (doc) {\n emit(doc._id, 1);\n}';
18
const defaultReduce = 'function (keys, values, rereduce) {\n if (rereduce) {\n return sum(values);\n } else {\n return values.length;\n }\n}';
19
-const builtInReducers = ['_sum', '_count', '_stats', '_approx_count_distinct'];
+const builtInReducers = ['_sum', '_count', '_stats', '_approx_count_distinct', '_top_1', '_top_10', '_top_100', '_bottom_1', '_bottom_10', '_bottom_100', '_first', '_last'];
20
const allReducers = builtInReducers.concat(['CUSTOM', 'NONE']);
21
22
const initialState = {
0 commit comments