You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can I use an array of IDs as argument value in a bundle?
For example, I'm creating bundle to delete list of projects:
"bundles": [
{
"name": "projects-delete"
"arguments": [
"projectID",
"ownerIDs",
],
"operations": [
{
"relationships_delete": [
"project:{{.projectID}}#owner@user:{{.ownerIDs}}",
],
},
],
},
],
and when I send list of ownerIDs ['1','2','3','4'], the bundle will delete next relations:
project:1:owner#user@1
project:1:owner#user@2
project:1:owner#user@3
project:1:owner#user@4
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Can I use an array of IDs as argument value in a bundle?
For example, I'm creating bundle to delete list of projects:
"bundles": [
{
"name": "projects-delete"
"arguments": [
"projectID",
"ownerIDs",
],
"operations": [
{
"relationships_delete": [
"project:{{.projectID}}#owner@user:{{.ownerIDs}}",
],
},
],
},
],
and when I send list of ownerIDs ['1','2','3','4'], the bundle will delete next relations:
project:1:owner#user@1
project:1:owner#user@2
project:1:owner#user@3
project:1:owner#user@4
Beta Was this translation helpful? Give feedback.
All reactions