Set _id from another input field #14310
Answered
by
vkarpov15
AaronPorts
asked this question in
Q&A
-
Is it possible to create a setter for the |
Beta Was this translation helpful? Give feedback.
Answered by
vkarpov15
Feb 5, 2024
Replies: 1 comment
-
Yes, however you would have to add one yourself using something like the following:
Mongoose briefly had a virtual like this between versions 7.4 and 8.0, but we had to remove it because the virtual caused too many hard-to-debug issues for existing codebases to enable it by default. But there's nothing stopping you from adding that to your codebase. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
AaronPorts
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, however you would have to add one yourself using something like the following:
Mongoose briefly had a virtual like this between versions 7.4 and 8.0, but we had to remove it because the virtual caused too many hard-to-debug issues for existing codebases to enable it by default. But there's nothing stopping you from adding that to your codebase.