I have a graph node called vat that accepts parameters, if I use this query in playground forcing a country parameter works, but in react, when I'm using apolloClient, this countryCode parameter is not arriving to vat node. What I am doing wrong? I've been searching a lot of documentation but I don't find the solution, either in the apollo client documentation.
const QUERY_PRODUCT = gql`
query getProductInfo($productId: String, $productHasStock: Boolean, $countryCode: String) {
searchProducts(productId: $productId, productHasStock: $productHasStock, countryCode: $countryCode) {
products {
vat(countryCode: $countryCode) {
vatAdjustmentPercentage
customerVatValue
}
}
}
}
`;
Thanks!