apollo-kotlin icon indicating copy to clipboard operation
apollo-kotlin copied to clipboard

how pass query variables to client in every request ?

Open namdroid opened this issue 7 months ago • 9 comments

Question

my request shows like that:

curl --request POST \
 -H 'Content-Type: application/json' \
 --data '{"query":"query GetBestSellers($category: ProductCategory){bestSellers(category: $category){title}}", "operationName":"GetBestSellers", "variables":{"category":"BOOKS"}}' \
 https://rover.apollo.dev/quickstart/products/graphql

How can i pass "variables":{"category":"BOOKS"}} ?

namdroid avatar Jul 23 '24 11:07 namdroid