1.0.1 • Published 3 years ago
winext-repository v1.0.1
Installation
Install the dependencies and devDependencies and start the server.
$ npm install winext-repository
How to use
const dataStore = require('winext-repository').dataStore;
// method can use
findOne({type, filter = {}, projection = {}, populates})
count({type, filter = {}})
create({type, data})
find({type, filter = {}, projection = {}, options = {}, populates})
get({type, id, projection= {}, populates})
update({type, id, data})
updateOne({type, id, data})
updateMany({type, filter = {}, data})
aggregate({type, pipeline})
deleted({type, id})