mongodb/node-mongodb-native ? reverse-engineered prompt
Reverse engineered prompt
Build me the official MongoDB driver for Node.js in TypeScript.
I want a library that lets a Node app connect to MongoDB, run queries, insert, update, delete, handle sessions and transactions, and work cleanly with modern TypeScript types. It should feel like a real production driver, with solid error handling, documentation, and tests, and it should support current MongoDB server versions and common Node runtimes.
Please make the public API easy to use, keep it compatible with existing MongoDB driver behavior where possible, and include the usual setup for publishing and running the test suite. If anything about the latest MongoDB or Node docs matters, look them up online first so the implementation matches current guidance.
Are you gonna build this?
make sure you review the code using coderabbit