-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Create array of enums #661
Comments
@aheckmann any reason this sort of thing isn't built into mongoose? threw me off recently as I expected it to work the same as if it was a non-array field |
same here (3.8.8) - are there any plans to implement this? |
Not at the moment, but I think this is something that should make it into 4.0. |
Exactly what I was looking for, I hope it will make it into 4.0 |
+1 |
5 similar comments
+1 |
+1 |
+1 |
+1 |
+1 |
When an array is marked as modified, run validators on all children #661
I use something like
to set default value. |
What's the status on this ? |
@cloud-tribal well the issue is closed with 3.9.6 as the milestone, so I'd imagine that means it was released in 3.9.6. If you're using 4.x you should be able to access this feature. |
Creating an array of enum doesn't appear to be implemented, would be nice to have!
Small snippet of conversation on irc which might give direction:
The text was updated successfully, but these errors were encountered: