I understand that Schema.methods defines the methods in each instance, while Schema.statics defines the methods in each model. Is there any pattern from which to define the token generator function between these 2 options?
I understand that Schema.methods defines the methods in each instance, while Schema.statics defines the methods in each model. Is there any pattern from which to define the token generator function between these 2 options?