mongo-essential
v1.0.4
Published
Mongo plugin for node-essential
Downloads
5
Readme
mongo-essential
Mongo plugin for node-essential.
Getting started
npm i --save mongo-essential
const { BaseDB, EntityBase } = require("mongo-essential");
class UserModel extends EntityBase {
constructor() {
super();
this.id = "";
this.name = "";
}
}
class UserTableManager extends BaseDB {
constructor(injection) {
super("user", { injection });
}
get entityType() {
return UserModel;
}
}