@woodl/crud
v4.0.1
Published
CRUD service for mongoose models
Readme
@woodl / crud
Version history
1.0.0- Created NPM package1.0.1- Fixed small bug with parsing Base64 incrudNew2.0.0- Merged with TT-Webapp2.0.2- Updated README2.0.6- Verify documents exist before removing2.0.7- Give instance to the can function3.0.0- Can function is always given the object that will be created so it can be used to validate access3.0.2- Fixed bug on populate3.0.4- Resolved small bug on archive & unarchive4.0.0- Added default responses on create & update & updated for newer versions of Mongoose
Usage
const projectSpecific = {
query: require('./project-specific-query'),
new: require('./project-specific-new'),
create: require('./project-specific-create'),
read: require('./project-specific-read'),
update: require('./project-specific-update'),
delete: require('./project-specific-delete'),
archive: require('./project-specific-archive'),
unarchive: require('./project-specific-unarchive'),
}Adding a new version
git commit -am "Unarchive still has a bug, since unarchived by is not stored"
npm version patch # minor, major
npm publish