Close multiple orders via graphql in one call

Close multiple orders via graphql in one call

Radixsecur1ty
Shopify Partner
21 4 7

Hello there,

 

Right now i am closing the orders with the following method via graphql.

 

{
    data: {
      query: `mutation orderClose($input: OrderCloseInput!) {
            orderClose(input: $input) {
              order {
              id name
              }
              userErrors {
                field
                message
              }
            }
          }`,
      variables: {
        input: {
          id: orderId,
        },
      },
    },
  }
 
In this mutation i can close only one order.
Is there a way to close multiple orders in one single mutation call?
 
Thank you all helps guys in advance!!
 
Ákos
Replies 0 (0)