Closed stijnbernards closed 4 years ago
@TomashKhamlai , I was unable reproduce this issue on my instance. I got Field CartAddressInput.country_code of required type String! was not provided. error if country_code was not set in the mutation query:
mutation {
setShippingAddressesOnCart(
input: {
cart_id: "hnnNHI6X7a3N6cdbmoeswrF3qewwHQqC"
shipping_addresses: [
{
address: {
firstname: "John"
lastname: "Doe"
company: "Company Name"
street: ["320 N Crescent Dr", "Beverly Hills"]
city: "Los Angeles"
region: "CA"
postcode: "90210"
telephone: "123-456-0000"
save_in_address_book: false
}
}
]
}
) {
cart {
shipping_addresses {
firstname
lastname
company
street
city
region {
code
label
}
postcode
telephone
country {
code
label
}
}
}
}
}
Preconditions (*)
Steps to reproduce (*)
Expected result (*)
Actual result (*)