Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Schema references as Model #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

trovafer
Copy link

@trovafer trovafer commented May 7, 2021

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.

@LSafer
Copy link

LSafer commented May 5, 2022

Never mind, I created https://github.com/lsafer/mongoose-extra-validators to address the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants