Nodejs MongoDB Insert

In MongoDB, insertOne() method is used to insert a record or document into a collection.

Code :