Using the following graphql call I’m wondering how I could alter it to also return me the discount code applied for each line item. Currently I’m able to the the total discount applied, but not the code associated with that discount. How would I go about fetching that code?
query {
node(id: "some id") {
id
... on Order {
discountCodes
lineITems (first:10) {
id
discountAllocations {
discountApplication {
allocationMethod
index
targetSelection
targetType
value
}
}
}
}
}
}