Hey Chris, look
Mongous . I had the same problem with mongoose, as my circuits very often change right now in the development process. Monguian allowed me to have the simplicity of the Mongoose, although I was free to define and modify my "schemes." I decided to just create standard JavaScript objects and save them in a database like this
function User(user){ this.name = user.name , this.age = user.age } app.post('save/user', function(req,res,next){ var u = new User(req.body) db('mydb.users').save(u) res.send(200)
Much easier than Mongoose, although I really think you missed some cool mid-tier stuff, like "pre". This is by no means necessary for me. Hope this helps !!!
Hacknightly Mar 21 2018-11-21T00: 00Z
source share