**Introducing MongoDB Atlas Data API Client: Streamline Node.js Interactions with Atlas Data API**
**What's the big deal?**
* **Effortless Data Access:** This Node.js wrapper simplifies how you work with the MongoDB Atlas Data API, making data interactions a breeze.
* **Use Case Versatility:** Perfect for Next.js apps, serverless functions, and scenarios where you want database access without exposing sensitive connection details.
**Snappy Installation:**
```bash
npm install mongodb-atlas-data-api
# Or
pnpm install mongodb-atlas-data-api
# Or
yarn add mongodb-atlas-data-api
```
**Quick Demo:**
```javascript
import "dotenv/config";
import { AtlasApi } from "mongodb-atlas-data-api";
const atlasApiClient = new AtlasApi({
basePath: process.env.ATLAS_BASE_PATH,
auth: {
type: "apiKey",
apiKey: process.env.ATLAS_API_KEY as string,
},
dataSource: "Cluster0",
collection: "User",
database: "myDatabase",
});
const run = async () => {
const response = await atlasApiClient.find({
findManyRequestBody: {
filter: {
firstName: "test",
},
},
});
console.log(response);
};
run();
```
**Got Feedback?**
This library is open-source and welcomes your contributions! Help us make it even better.
**I'd love to hear your thoughts and answer any questions.**