Hi @manasa_pradeep and welcome in the MongoDB Community
!
You can use console.log(X) and the helpers EJSON.stringify(doc) or JSON.stringify(doc).
Don’t forget to resolve the promise with the toArray().
Note that you actually have an alternative in the above link with items.forEach(console.log).
Cheers,
Maxime.