GraphQL Admin API: Customer Metafields successful but shows no data

Product_ADVRTY
Shopify Partner
11 0 3

Hi,

 

We're strongly reliant on a customer_type metafield. I'm sure we have data here, but the query I send to retrieve this shows no data. Can someone please please help?

 

{
  shop {
    name
  }
  customers(first: 250) {
    edges {
      node {
        metafield(key: "customer_type", namespace: "custom_namespace") {
          id
          value
          key
          namespace
          createdAt
          description
        }
        displayName
      }
    }
  }
}

Response:

 

{
    "data": {
        "shop": {
            "name": "De Soi"
        },
        "customers": {
            "edges": [
                {
                    "node": {
                        "metafield": null,
                        "displayName": "isaac alvarez"
                    }
                },
                {
                    "node": {
                        "metafield": null,
                        "displayName": "zach lee"
                    }
                },...

 

Replies 0 (0)