@tomsd/mongodbatlas
v2.0.0
Published
It's a library for MongoDB Atlas.
Downloads
395
Readme
@tomsd/mongodbatlas
It's a library for MongoDB Atlas.
See mongodbatlas.netlify.app also.
installation
npm install @tomsd/mongodbatlas
usage
Import and use MongoDbAtlas class.
import { MongoDbAtlas } from "@tomsd/mongodbatlas";
const mongoDbAtlas = new MongoDbAtlas(
PUBLIC_KEY,
PRIVATE_KEY
);
get projects
console.log(
await mongoDbAtlas.projects.getAll()
);
get one project
const projectId = "...";
await mongoDbAtlas.project(projectId).get();
get users in project
await mongoDbAtlas.project(projectId).getUsers();