I am using this query
{
id
discountAllocations {
discountedAmount {
amount
currencyCode
}
}
discountCodes{
applicable
code
}
attributes {
key
value
}
cost {
totalAmount {
amount
currencyCode
}
subtotalAmount {
amount
currencyCode
}
totalTaxAmount {
amount
currencyCode
}
totalDutyAmount {
amount
currencyCode
}
}
totalQuantity
note
lines(first:100){
edges{
node{
id
merchandise{
... on ProductVariant {
id
title
product{
createdAt
description
id
productType
title
updatedAt
vendor
}
image{
height
id
url
width
}
price
unitPrice{
amount
currencyCode
}
}
}
quantity
}
}
}}}}
Where and what would I have add to this query to receive the name of the automatic discount code applied on the cart?
I read the docs about CartAutomaticDiscountAllocation but can’t figure out how to access/ reach this object.