4 ms·
So, if anyone from the Mongoose team is around, please correct me if I'm wrong - but defining a model's schema helps mostly in scenarios where you would typecas
by nicholaswyoung 16y ago
So, if anyone from the Mongoose team is around, please correct me if I'm wrong - but defining a model's schema helps mostly in scenarios where you would typecast or otherwise transform attributes.
It's more about helping you easily use data that's retrieved from the DB more than about defining a schema.