How to update link record from through table in Loopback4 #7498
Unanswered
HarshalNathe
asked this question in
LB3 Migration
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using the hasManyThrough relationship in my project. And I want to update the linked record that is present in through table.
For E.x. I have 3 tables
1. user
2. role
3. roleMapping
By using following code I'm able to
linkandunlinksource & target instances.Till works as expected. Now, I want to update the
roleIdof the target instance linked inroleMapping.table.After linking how its get inserted into
RoleMappingtable. I want to update thisroleIdinto 2Note: I'm using MySQL as a datasource.
Beta Was this translation helpful? Give feedback.
All reactions