The following usage examples demonstrate how to perform transactions by using the transaction APIs in the Node.js driver:
Use the Convenient Transaction API
Use the Core API
Next
MongoDB Node Driver