Skip to content

Moving from array of single subdocument to mixed array - what am I missing? #13385

Answered by vkarpov15
AdamGerthel asked this question in Q&A
Discussion options

You must be logged in to vote

You could try const hydratedOption = new models.SceneOption(option); hydratedOption.validateSync(); That will also apply defaults, etc.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@AdamGerthel
Comment options

Answer selected by AdamGerthel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants