@mconnect/crud-mg
- mConnect MongoDB CRUD operations, crud-mongo re-write
Installation
$ npm install @mconnect/crud-mg
APIs
// Classes' signatures
GetAllRecord(params : object, appDb : function, options : object = {}) : array
GetAllRecords(params : object, appDb : function, options : object = {}) : array
Example
const {GetAllRecord, newGetAllRecord} = require('@mconnect/crud-mg');
const itemInstance = new GetAllRecord({coll: 'services', }, appDb, options = {});
const itemFactory = newGetAllRecord({coll: 'services', }, appDb, options = {});