Hi,
I am working on the custom delivery function. How can I get the customer metafield value ?
Input query is this
query RunInput {
cart {
buyerIdentity {
customer {
id
displayName
email
hasTags ( tags: ["Local pick up"]) {
hasTag
tag
}
metafield (key:"custom.locality", namespace:"customer"){
value
}
}
}
deliveryGroups {
deliveryAddress {
provinceCode
}
deliveryOptions {
handle
title
}
}
}
}
This is the input
{
"cart": {
"buyerIdentity": {
"customer": {
"id": "gid://shopify/Customer/11111",
"displayName": "Bob James",
"email": "a+bob@gmail.com",
"hasTags": [
{
"hasTag": true,
"tag": "Local pick up"
}
],
"metafield": null
}
},
"deliveryGroups": [
{
"deliveryAddress": {
"provinceCode": "NSW"
},
"deliveryOptions": [
{
"handle": "9d6c322a5e8380801094fd4f5cb7293c-5f3137c82b95cc9a5ea6147c93eeed84",
"title": "Local pick up"
},
{
"handle": "9d6c322a5e8380801094fd4f5cb7293c-c7128c168fccb401d715c207404eee05",
"title": "Standard"
}
]
}
]
}
}


