Open trovafer opened 3 years ago
Mongoose permits Schema references to be set as String or Model. https://mongoosejs.com/docs/api/schematype.html#schematype_SchemaType-ref
This change is to support both scenarios.
Never mind, I created https://github.com/lsafer/mongoose-extra-validators to address the issue
Mongoose permits Schema references to be set as String or Model. https://mongoosejs.com/docs/api/schematype.html#schematype_SchemaType-ref
This change is to support both scenarios.