I’ve created a metafield against customers (using the Shopify Admin UI).
Went in manually via the UI and added a dummy value of 123.
But when I try doing the following query in the GraphiQL app I get null
on the metafield.
{
customers(first: 250, query: "updated_at:>2025-06-23T14:30:00Z") {
edges {
node {
id
firstName
lastName
metafield(namespace:"business_central", key:"system_id") {
id
value
}
defaultPhoneNumber {
phoneNumber
}
defaultAddress {
firstName
lastName
phone
address1
address2
city
countryCodeV2
zip
}
}
}
}
}
I can see the metafield and its value is definitely there by going to the customer in the admin and adding /metafields.json
:
{"metafields":[{"id":57595182416209,"namespace":"buisness_central","key":"system_id","value":"123","description":null,"owner_id":8935427178833,"created_at":"2025-06-24T14:27:54+01:00","updated_at":"2025-06-24T14:27:54+01:00","owner_resource":"customer","type":"single_line_text_field","admin_graphql_api_id":"gid:\/\/shopify\/Metafield\/57595182416209"}]}
Am I missing something obvious here?
FYI: I’m also receiving null in Patchworks where I’m going to be making this call from, I created a private app to get the token to access the Admin API.