How to use this graphql

query {
customer(id: “gid://shopify/Customer/customerId”) {
id
firstName
verifiedEmail
email
}
}
when i use this email i got a warning of deprecated of this email. and get that suggestion Use defaultEmailAddress.emailAddress instead.
so how to use this.

if i try to use this like this

query {
customer(id: “gid://shopify/Customer/6884731191392”) {
id
firstName
verifiedEmail
defaultEmailAddress {
email
}
}
}
i got that error "
“message”: “Field ‘defaultEmailAddress’ doesn’t exist on type ‘Customer’”,

now tell me please if anyone know how to use this

1 Like

i got same error and have to use deprecated email field

lostarrows27_0-1747195375502.png