How does javascript query mongodb for multiple conditions

  node.js, question

An array var a = [‘a’,’b’,’c’] inside Each element is a query condition.

Now we need to pass the elements of A into mongodb in turn as conditional queries.

Mongodb’s query is asynchronous.

If the order of the query results is the same as that of the incoming conditions?

Directly use node.js asynchronous to handle, for example:

async.map(a, function(item, cb){
 //item here will be' a'\'b'\'c' in turn
 //Execute mongodb query
 }, function(err, result){
 return callback(err, result);
 });