# All channels
Sachin D. Shinde@sachin-shinde
What is a good strategy when designing graphQL queries?
Should it be: 1. Data specific There are queries available för retreiving data like GetOne, GetAll. Just like a resource API would be. This would make the API unaware of how client applications are built. It’s up to the client implementation to join different data structures…
Supplementing queried server data with default local cache data
If I'm querying or subscribing to data from my server that will get cached and used locally, how can I set the values for fields on that type that only exist on my local cache. For instance, I have the following type, which extends a type from the server (the commented fields…
Search by geolocation radius
Hi all - I'd like to add search by geolocation radius to my web app. Has anyone does this before or know of any good examples? More specifically, I'd like for my users to input a zip code and for my backend to return items within a 10 mile radius. My current stack is react and…
Apollo-Client Subscription with Hasura
I'm using Apollo-Client for communication with my Hasura GraphQL server. I'm struggling with doing subscription. Can anyone provide some details on how to perform a subscription using Java(as most examples are of React in apollo documentation)?
does onError retry the request?
im running into an issue using the onError link i think, im sending the server a request, authorization fails, and it gets picked up by the onError link. But it never tried to do the request again, even though i am using forward(operation) am i misunderstanding things and…
Using Apollo subscriptions with Redis and PM2 cluster mode
Hello, I have a server with Apollo Server and subscriptions based on Redis and graphql-redis-subscriptions . I'm using PM2 cluster mode in production (with 4 instances) and subscriptions work only on 1 of them, though there are no errors on client or server side. Does anyone…
readQuery vs query
Hi, I am trying to understand what the use case scenario for readQuery would be. I understand that it will never query the server and only read from cache, but wouldn't a regular query with cache-only as the fetch policy be essentially the same thing? I am trying to understand…