Mongodb Returns list for a Column Value

  mongodb, question
The data structure in mongodb is
 {'_id': 1, 'name': 'a'}
 {'_id': 2, 'name': 'b'}
 {'_id': 3, 'name': 'c'}
 Can now pass
 db.collection.find({}, {'name': 1})
 The resulting list is:
 {'name': 'a'},
 {'name': 'b'},
 {'name': 'c'}
 Is there any way to get the following values (don't want to load the data into the memory recycle list for processing, does mongodb itself provide any method)
 ['a', 'b', 'c']

Mongodb supports js syntax, so use it directly.mapJust do it

// es6
 db.collection.find({}, {'name': 1}).map( x => ) // [ "a", "b", "c" ]
 db.collection.find({}, {'name': 1}).map(function(x) {return} )

Please see map introduction.