mongodb-atlas-sdk is a modern, TypeScript-based SDK designed to simplify and supercharge your interaction with MongoDB Atlas. Built with scalability, ease of use, and extensibility in mind, mongodb-atlas-sdk is the perfect solution for developers who need a flexible and robust tool to handle complex database operations.
Unlike other MongoDB SDKs, mongodb-atlas-sdk
focuses on developer productivity, scalability, and modern application needs. Whether you’re building a high-performance REST API, a real-time app, data backup or a distributed system, mongodb-atlas-sdk
is here to empower your database operations.
Let's start by installing mongodb-atlas-sdk. You can install it with the following any package manager.
npm install mongodb-atlas-sdk
pnpm add mongodb-atlas-sdk
yarn add mongodb-atlas-sdk
import express from 'express';
import dotenv from 'dotenv';
import { MongoDbConnection } from 'mongodb-atlas-sdk';
dotenv.config();
const connectMongo = new MongoDbConnection(process.env.DB_URI!);
const app = express();
const PORT = process.env.PORT || 5000;
app.use(express.json({ limit: '10mb' }));
app.listen(PORT, () => {
console.log('Server is running on http://localhost:' + PORT);
connectMongo.connect();
});
- Getting Started
- Connect to MongoDB Atlas
- Create Schema and Model
- Connection Pooling
- Query Caching
- Audit Logging
- Backup and Restore
and many more go here
Whether reporting bugs, discussing improvements and new ideas or writing code, we welcome contributions from anyone and everyone. Please check our Contributing Guide.
- Give a ⭐️ if this project helped you!
- You can also sponsor me on Github