Set _id from another input field #14310
-
Is it possible to create a setter for the |
Beta Was this translation helpful? Give feedback.
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.
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.