Hello,
Is there any real difference between the two forms of this command (from movie-last-updated-migration.js
- const cursor = await mflix.collection(“movies”)
.find(predicate, projection)
.toArray()
and
- cursor = await movies.find( … )
.find(predicate, projection)
.toArray()
My only thoughts about 1. is that we only do in that particular program there is only one pull from database, and it’s just shorter???
I would like to know if there any difference, that I have not appreciated.
Any preferences ?
Thank you.