1.6.0 • Published 3 years ago
winrow-repository v1.6.0
Installation
Install the dependencies and devDependencies and start the server.
$ npm install winrow-repository
How to use
const dataStore = require('winrow-repository').dataStore;
dataStore.findOne({type, filter = {}, projection = {}, populates});
// 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})