Scott Aefsky
07/18/2022, 6:20 PMmutation {
create_flow_run(
input: {flow_id: "XXXXXXXXXXX"}
) {
id
}
}
Since parameters
is another argument to the create_flow_run function, I figured I could simply add it to the input dict, but every version I have tried has led to an error of Expected Type JSON
. My first pass was:
mutation {
create_flow_run(
input: {flow_id: "XXXXXXXXX", parameters: {cycler_id: 123}}
) {
id
}
}
and I've tried adding quotes in several places, changing the value to a string, but all to no avail. Thanks for any help!Kevin Kho
07/18/2022, 6:32 PMClient.create_flow_run
?Scott Aefsky
07/18/2022, 6:36 PMKevin Kho
07/18/2022, 6:37 PMScott Aefsky
07/18/2022, 6:42 PMmutation ($input: createFlowRunInput!) {
createFlowRun(input: $input) {
flow_run {
id
}
}
}
and "variables" is
{
"input": {
"parameters": {
"cycler_number": 7
},
"versionGroupId": "XXXXXXXXXXX"
}
}
Kevin Kho
07/18/2022, 9:03 PM