Is there a difference between these queries? I'm curious to know how mongo interprets javascript code passed to the map method vs. mapping once the query resolves.
db.collection('myCollection').find()
.map(document => document.value + 3)
.toArray();
vs.
db.collection('myCollection').find()
.toArray()
.then(array => array.map(document => document.value + 3));