How to use this graphql

How to use this graphql

damonrcr
Shopify Partner
8 0 0
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

 

Replies 0 (0)