Can’t update all fields in Shipping address with GraphQL,
first_name is not updated
last_name is not updated
if we send company it become null on shiphero
If we send country as country name it appears on shipping address block but when we edit it, the country is not selected https://nimb.ws/5klqJm (same thing even if we send it with country_code)
If we send country as country code and without country_code it appears on shipping address block like country code and when we edit it,
the country is selected, https://nimb.ws/CsoKjQ
For now we are sending country as country code and without country_code to shiphero, not sure if is ok.
Rest of fields are updated.
Do we need to send state_code and country_code?
Is it ok to send country as country code
Why first_name, last_name, company not updated?
Our mutation
mutation {
order_update(
data: {
order_id: "T3JkZXI6MTA1NTY3Mjk3"
shipping_address: {
first_name: "Fname"
last_name: "Lname"
company: "TestCompany"
address1: "test addres 1"
address2: "test addres 2"
city: "Sacramento"
state: "California"
state_code: "CA"
country: "US"
zip: "94203"
phone: "54586486"
}
}
) {
order {
id
}
}
}