A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
I am using productCreate with bulkOperationRunMutation
I am sending my graphql like this
mutation
{
bulkOperationRunMutation(
mutation: "mutation call($input: ProductInput!) { productCreate(input: $input) { product {id handle tags variants {
edges {
node {
id
sku
inventoryManagement
metafields {
edges {
node {
description
id
key
legacyResourceId
namespace
value
valueType
}
}
}
}
}
}} userErrors { message field } } }",
stagedUploadPath: "%s") {
bulkOperation
{
id
url
status
}
userErrors
{
message
field
}
}
}
However, I get this error: Bulk mutations cannot contain more than 1 connection.
I have narrowed that down to the metafields {} part. I use that so that I can store some of the data, to use again
Is there any way around that, to return metadata field data, in the response file
Thanks
Grant
I face the same issue, can someone help ?
The mutation output contains two connections (nested node { edges { ... }}).
There is variants { edges { node { ... metafield { edges { node { ....
Remove the metafield output and it will work. This is only the output of the mutation that is passed back to the user. It does not affect what the mutation does.