mutation createOrder(
  $input: CreateOrderWithArtworkInput!
) {
  createOrderWithArtwork(
    input: $input
  ) {
    orderOrError {
      ... on OrderWithMutationSuccess {
        order {
          id
        }
      }
      ... on OrderWithMutationFailure {
        error {
          description
        }
      }
    }
  }
}


Switch to latest error type
mutation createOrder(
  $input: CreateOrderWithArtworkInput!
) {
  createOrderWithArtwork(
    input: $input
  ) {
    orderOrError {
      ... on OrderWithMutationSuccess {
        order {
          id
        }
      }
      ... on OrderWithMutationFailure {
        error {
          type
          code
          data
        }
      }
    }
  }
}