Open Zren opened 10 years ago
Starting to implement this: https://github.com/Zren/OpenUserJS.org/commit/4f33df7cbc0b47ba8957bf6a11f3961a90ff9cb9
@Zren With your announcement you should also "assign" yourself to this issue... I'll assign it for you this time but this will help automatically mediate further pr's. It only takes a couple of seconds to do. :)
Deassigned you for the time being... if mongoose ever has the ability to use .toObject
with exporting the method
s or creating set
ters with export... then we can move some of the code into the schema's... can't do it without it though at this point in time.
Most of modelParser could be moved into the schemas as virtual properties.
Schema's can have mixins called plugins, so we can define common properties/methods in one place too.