Bundle for one to many relatipnship #2223
Unanswered
kahyoongho
asked this question in
Q&A
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.
-
Say I have an entity like so
entity team {
relation managers @user
relation members @user
}
a team can have multiple managers and multiple members (one to many relationships)
I know that I can write bundle with operations as below
operations: {
"relationships_write": [
"team:{{.teamID}}#managers@user:{{.managersIDs}}",
"team:{{.teamID}}#members@user:{{.membersIDs}}"
]
}
I realize arguments passed to run-bundle can only be string
May I know how should I run bundle for one to many relationship in this case?
Besides repeatedly call the api with loop.
Beta Was this translation helpful? Give feedback.
All reactions