Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

162
Views
How I can pass a parameter in a graphQL apollo client query that will be used by one of the graph nodes

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!

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!