-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 model instance from plain-data object at controller methods #5572
Comments
This looks more like a bug to me. If I expect a But for now, wouldn't |
Yeah @InvictusMB I did that |
Does this docs page provide something you're looking for? https://github.com/strongloop/loopback-next/blob/master/docs/site/Dynamic-models-repositories-controllers.md cc @hacksparrow |
Requirement is not very clear to me. |
@hacksparrow This is somewhat related to #2707 |
Thank you @InvictusMB seems this story is asking for the same feature as #2707. @fenixsolorzano do you mind if we move all the discussion there? (trying to keep the backlog smaller) |
This issue has been marked stale because it has not seen activity within six months. If you believe this to be in error, please contact one of the code owners, listed in the |
This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners, listed in the |
Suggestion
When method hits with a request body we can set it to have a model type, but in the method body the model is just plain-data object.
Use Cases
Since models are classes I'd like to create computed properties for the model like getters, and also have functions to calculate stuff based on the properties that the class has.
Examples
Acceptance criteria
TBD - will be filled by the team.
The text was updated successfully, but these errors were encountered: