@nbn23/wrapper-mongodb
v1.0.4
Published
Wrapper mongodb nodejs
Downloads
17
Readme
Wrapper Mongo
DataLoader is a generic utility to be used as part of your application's data fetching layer to provide a simplified and consistent API over various remote data sources such as databases or web services via batching and caching.
Getting Started
Install Wrapper Mongo using npm.
npm install --save @nbn23/wrapper-mongo
Note: Wrapper mongo assumes a TypeScript environment
Usage
const Database = require("wrapper-mongo");
const database = await Database.newInstance(DATABASE_URI, DATABASE_NAME);
const result = await database.findMany(COLLECTION, QUERY);
database.close();