How I can handle a many to many relationship between two diferent apis? #872
-
|
Hello I am trying to do a many to many association between resources from two diferent apis this is my registry from both sides This is my relationship on client module this is my relationship from branch and this is my relationship from clientBranch resouse But i got this error
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
The error message describes the process. You'll need to add define the underlying |
Beta Was this translation helpful? Give feedback.
-
|
given this relationship, where the many_to_many :friends, User do
through FriendLink
...
api Other.Api
endyou can split the has_many :friend_links, FriendLink do
...
# don't configure an api, since its in the same source api
end
many_to_many :friends, Friend do
...
join_relationship
end |
Beta Was this translation helpful? Give feedback.
given this relationship, where the
throughresource is in the source api not inOther.Apiyou can split the
has_manyrelationship out with a different api configured (or likely in your case, no api configured)