Array as value of bundle argument #1261
Unanswered
kiriencoder
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
-
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