I am building one app which can be used by multiple retailers. And in that app there is one function called cart transform. Inside that function I want to access the customer tags or know whether a customer has particular tags. I know how to parameterise the input of the graphql query. But when you create/register this function this parameter is not as per the retailers. This is a complete list of tags that is published to my app and that is running for all the customers. But I want to parameterise this query based on the vendor. For different vendors the customer tags would be different. How to achieve that?
query RunInput($customerTag: [String!]) {
cart {
buyerIdentity {
customer {
amountSpent {
amount
}
hasTags(tags: $customerTag) {
hasTag
tag
}
}
}
}
}