Skip to content

Commit fa6fb3a

Browse files
authored
Merge pull request #1477 from glynnbird/add-new-reducers
Added new reducers to the list of MapReduce reducers in the pull-down list
2 parents 30e335d + 9623797 commit fa6fb3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/addons/documents/index-editor/reducers.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import Helpers from '../helpers';
1616

1717
const defaultMap = 'function (doc) {\n emit(doc._id, 1);\n}';
1818
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'];
19+
const builtInReducers = ['_sum', '_count', '_stats', '_approx_count_distinct', '_top_1', '_top_10', '_top_100', '_bottom_1', '_bottom_10', '_bottom_100', '_first', '_last'];
2020
const allReducers = builtInReducers.concat(['CUSTOM', 'NONE']);
2121

2222
const initialState = {

0 commit comments

Comments
 (0)