Hi all,
Since yesterday (1st of august 2024), I get the following error when running Bulk Queries in GraphQl.
syntax error, unexpected invalid token ("\"") at [2, 32]
My query is as follows:
mutation MyMutation {
bulkOperationRunQuery(query: "query Orders {
orders(query: \"created_at:>'2024-07-26T09:21:56Z'\") {
edges {
node {
id
name
totalDiscounts
cartDiscountAmount
createdAt
billingAddress {
address1
address2
city
company
country
countryCode
firstName
id
lastName
name
phone
zip
}
shippingAddress {
address1
address2
city
company
country
countryCode
firstName
id
lastName
name
phone
zip
}
currentTotalPriceSet {
shopMoney {
amount
currencyCode
}
}
lineItems {
edges {
node {
id
name
originalTotal
originalUnitPrice
quantity
sku
taxable
title
totalDiscount
product {
id
}
discountAllocations {
discountApplication {
allocationMethod
index
targetSelection
targetType
value {
... on MoneyV2 {
amount
currencyCode
}
... on PricingPercentageValue {
percentage
}
}
}
}
}
}
}
shippingLine {
carrierIdentifier
code
custom
deliveryCategory
id
phone
price
shippingRateHandle
source
title
}
fulfillmentOrders {
edges {
node {
channelId
createdAt
fulfillAt
fulfillBy
id
orderId
orderName
orderProcessedAt
requestStatus
status
updatedAt
}
}
}
discountApplications {
edges {
node {
allocationMethod
index
targetSelection
targetType
value {
... on MoneyV2 {
amount
currencyCode
}
... on PricingPercentageValue {
percentage
}
}
}
}
}
}
}
}
}") {
bulkOperation {
id
}
}
}
I solved this by removing all the new lines.
However I wonder if this is as intended. This makes the query much less readable.
Am I missing a setting or some documentation stating this change?
Kind regards,
Robert