Trying to get my flowTriggerReceivemutation to work but it keeps telling me I have issues with `order_id`.
$flow_mutation = [
'query' => '
mutation flowTriggerReceive($handle: String!, $payload: JSON!) {
flowTriggerReceive(handle: $handle, payload: $payload) {
userErrors {
field
message
}
}
}
',
'variables' => [
'handle' => 'order-tag-updated',
'payload' => [
'order_id' => $order_id,
'tagAdded' => $tag_added,
]
]
];
First it tells me:
[{āfieldā:[ābodyā],āmessageā:"Errors validating schema:\n Required field missing: āorder_idā.\nā}]
Then I add order_id and it tells me I have Type errors:
[{āfieldā:[ābodyā],āmessageā:āErrors validating schema:\n Type error for field āorder_idā: gid://shopify/Order/6826489905324 is not an Order.\nā}]
I tried just the INT and it still didnt work:
[{āfieldā:[ābodyā],āmessageā:āErrors validating schema:\n Type error for field āorder_idā: 6826489905324 is not an Order.\nā}]
The order is indeed an actual order.
In my TOML:
[settings]
[[settings.fields]]
type = āorder_referenceā