SyntaxFix
Write A Post
Hire A Developer
Questions
MongoDB queries return a cursor to an array stored in memory. To access that array's result you must call .toArray() at the end of the query.
.toArray()
db.collection("customers").find({}).toArray()