I am just wondering what mongoose .pre('validate') and .pre('save') would be used for. I know how it works and what it does, but I am not sure what situation I could have that I would use it for. Couldn't I just do everything I need within code? And what is difference between validate and save?
Sorry if these are dumb questions, I've done my research but not sure when to use these features