I'm curious about the use cases for mongoose .pre('validate') and .pre('save'). I understand their functionality, but I'm struggling to think of specific scenarios where I would need to utilize them. Can't all necessary actions be handled directly in code? Also, what distinguishes between validate and save?
Apologies if these questions seem basic, I've tried looking into it but haven't found a clear answer on when to incorporate these features