I’m currently studying the basics of MongoDB’s native JavaScript drivers. I was just reading this post.
I understand both Promise and Async Functions are supported in the driver.
As I am new to MongoDB and async JavaScript in general, I have no particular preference in which style to use. To keep my project’s codebase consistent, I plan on picking one syntax and using it throughout the project.
Does MongoDB encourage the use of a particular syntax style? Again, I know it probably comes down to personal preference but as I have none, I am curious to know if one syntax is recommended over the another, and what are the reasons for it.