magento / magento/magento2

CustomerCart graphql: address country label getting code not full name

Open
#36,916 10 comments 0 reactions 2 assignees Claimed by @chernenm View on GitHub
feature request Issue: ready for confirmation Progress: dev in progress Project: GraphQL Reported on 2.4.5
Dominant language
PHP
Stars
12.2k
Forks
9.4k
PR merge metrics
No merged PRs in 30d

Description

Magento version: **2.4.5**
Graphql: customerCart

Request:
`{
customerCart {
billing_address {
country {
label
code
}
firstname
lastname
}
shipping_addresses {
country {
label
code
}
}
}
}`

Response:
`{
"data": {
"customerCart": {
"billing_address": {
"country": {
"label": "DE",
"code": "DE"
},
"firstname": "Ronak",
"lastname": "Chauhan"
},
"shipping_addresses": [
{
"country": {
"label": "DE",
"code": "DE"
}
}
]
}
}
}`

Expected result:
`"country": {
"label": "Germany", // this should be full name of the country
"code": "DE"
},`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.