ECMAScript 6

ECMAScript 6 or JavaScript 6 as it’s more commonly known is the new future of the Javascript language. It introduces fundamental changes in JavaScript while maintaining backward compatibility with ECMAScript 5.

The MongoDB Node.js driver embraces the new JavaScript version to provide the end user with much improved functionality. We do this primarily by exposing Promises for all async methods without breaking backward compatibility with existing code using the driver.

This section exposes how to use the MongoDB Node.js driver with ECMAScript 6, leveraging all the productivity gains you get from the new Generators.

Note

For more information about ECMAScript 6 see the ECMAScript 6 features.

  • Connecting: how to connect leveraging ECMAScript 6.
  • CRUD: perform CRUD operations leveraging ECMAScript 6.
On this page