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
link
andunlink
source & target instances.Till works as expected. Now, I want to update the
roleId
of the target instance linked inroleMapping.
table.After linking how its get inserted into
RoleMapping
table. I want to update thisroleId
into 2Note: I'm using MySQL as a datasource.
Beta Was this translation helpful? Give feedback.
All reactions