Aiden Price
08/31/2021, 3:17 AMquery
like this;
query($path: String!) {
flow {
id
name
flow_group_id
flow_group {
id
name
default_parameters(path: $path)
}
}
}
mutation($flow_group_id: UUID!, $params: JSON!) {
set_flow_group_default_parameters(
input: {
flow_group_id: $flow_group_id,
parameters: $params
}
) {
success
error
}
}
With parameters like this;
{
"flow_group_id": "e214d16b-ca58-453c-b67f-xxxxxxxxxxxxx",
"params": "{\"site_timezone\": \"Australia/Queensland\"}"
}
I get an error that says value is not a valid dict (type=type_error.dict)
Kevin Kho
query {
flow {
id
name
flow_group {
id
name
default_parameters
}
}
}
Aiden Price
08/31/2021, 4:53 AM{}
when I was expecting that all of them would have at least oneKevin Kho
Aiden Price
08/31/2021, 4:55 AMKevin Kho
flow -> parameters
. In the UI though, you can set overrides to these and those will populate flow_group -> default_parameters
query {
flow (where: {name: {_eq: "docker_example"}}){
id
name
parameters
flow_group {
id
name
default_parameters
}
}
}
Aiden Price
08/31/2021, 4:59 AMflow
not the flow_group
? because I still get an empty object for the default_parameters
flow
presumably because of all the versions. I assumed that I could change the parameters for the flow_group
and then I would change the defaults for any new versions.Kevin Kho
flow_group
are treated as overridesAiden Price
08/31/2021, 5:55 AMvalue is not a valid dict (type=type_error.dict)
when I try to post the mutation.Bouke Krom
08/31/2021, 10:19 AM{
"flow_group_id": "e214d16b-xxxxxxxxxxxxx",
"params": {
"site_timezone": "Australia/Queensland"
}
}
GraphiQL will give you warnings about expecting a JSON but the query might work.Aiden Price
08/31/2021, 10:30 AMBouke Krom
08/31/2021, 10:32 AM