SQL2Mongo is a developer-focused database abstraction library that bridges the conceptual gap between SQL and MongoDB. Instead of requiring developers to construct MongoDB-specific queries directly, the library provides a SQL-like interface for working with MongoDB and MongoDB Atlas.
The library supports SELECT, INSERT, UPDATE, and DELETE operations as well as more advanced SQL-style functionality including WHERE conditions, JOINs, GROUP BY, HAVING, ORDER BY, LIMIT, and OFFSET. It also includes schema validation, type checking, foreign-key-style constraints, automatic index management, and transaction support.
The project includes a test suite and is distributed as an npm package.