Replies: 1 comment
-
When decorators are formally included in the ECMAScript spec and fully supported in Node.js, we will consider using decorators in Mongoose. Stage 3 proposals have fallen through before, so I don't want to put the effort in to support decorators until they're formally adopted. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Since Decorators (
@decorator
) are almost standardized (stage 3), should mongoose consider supporting them, where maybe the function functionality of.loadClass
is extended? (maybe even more similar to howtypegoose
currently works?)Example of decorator usage from typegoose
Note: this thread is made to get to know if mongoose wants to make use of decorators first-party (instead of extensions like
typegoose
)Beta Was this translation helpful? Give feedback.
All reactions