I'm using mongodb and waterline to try to delete something a node from my collection and it doesn't work
User.find({}).done(function(err, myObjects){
console.log(myObjects[0].id)
})
"myId"
User.find({}).done(function(err, myObjects){
User.findOne({id: myObjects[0].id}).done(function(err, myObject){
console.log(myObject);
});
});
undefined
Realistically I want to just destroy everything in the database, but every time I try to it just sticks around, I'm considering trying postgres, but I understood that mongo could be useful for my application. Maybe I just don't understand how waterline works also.