-
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
Relational Controllers #1758
Comments
Cross-posting loopbackio/loopback4-example-shopping#12 (comment)
We have discussed this in the past, when implementing "hasMany" relation. Updating a single model via relation endpoint does not make much sense. Once you know the id of the target model ( The endpoint Personally, I think we have more pressing issues to deal with at the moment. I am proposing to put this story on hold for now. @dhmlau @raymondfeng @strongloop/sq-lb-apex thoughts? |
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 |
Description / Steps to reproduce / Feature proposal
Based on loopbackio/loopback4-example-shopping#12 (comment)
I am proposing we eventually add support to our existing relational controllers for manipulating individual related models.
Ex:
So this in its current form is not all that helpful as one would argue being able to directly manipulate the model using
/orders/{orderId}
as we don't have referential integrity (#1718) yet ... but once we do, this can help ensure that only users with access to an order are the ones manipulating it.This could also just be solved using authorization and may not be needed.
The purpose of this issue is to drive a discussion to figure out if this is needed or not.
The text was updated successfully, but these errors were encountered: