Skip to content

Commit

Permalink
Retrieve documents of disjunction query in same order as MongoDB
Browse files Browse the repository at this point in the history
  • Loading branch information
erikolson186 committed May 12, 2017
1 parent a8bc729 commit cd3e377
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/create_next_fn.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,13 +235,12 @@ const addPipelineStages = ({ pipeline }, next) => {
};

const createParallelNextFn = (config) => {
const next_fns = [];
const next_fns = [], pred_args = config.pred.args;

for (let node of config.pred.args) {
const new_config = {
col: config.col,
read_pref: config.read_pref,
pred: node,
pred: pred_args[i],
pipeline: []
};

Expand Down

0 comments on commit cd3e377

Please sign in to comment.