menu
Channels
Team
Posts
Members
Info

Timeout handling

When using apollo-link-http, what is the standard way of defining network timeouts for queries? I found https://github.com/drcallaway/apollo-link-timeout but currently it seems to measure the timeout on the time from the request was issued until it completes, even if the network…

thumbsup
0
message-simple
0

Best Practice to implement OAuth2 RefreshToken

https://tools.ietf.org/html/rfc6749#section-1.5 When I have to get a new token via the refreshToken I also have to repeat the last query with the new accesstoken. How can I do this? updating the token should be easy but how can I repeat the last query with the new token?

thumbsup
0
message-simple
7

How do I reduce rapid successive mutations?

I hope this is the right place for this. I've got a cart with plus and minus buttons next to the quantity of the cart items. When a user wants to increase their quantity from 2 to 6, for example, Apollo sends 4 mutation requests to the server, even though only the last one ("Set…

thumbsup
0
message-simple
2

Package: Apollo Link Average Query Time

Hey all, decided to publish a simple package that adds an average query response time to the cache. Our use case is basically once we see average queries going over ~3000ms, we show an indicator that the connection may be slow/bad. …

thumbsup
0
message-simple
0

Exact method that parses a GrapqhQL query to an Operation object

Am currently writing unit tests to test out the "request(operation, forward)" method of a custom "apollo-link". Am wondering if I can get access to the exact method that parses a GQL query (entered in Apollo-Client) to an Operation object (received by the request method of a…

thumbsup
0
message-simple
1

Avoid using try/catch when also using apollo-link-error

When using apollo-link-error, I still have to use a try/catch (in React Native anyway) to catch errors and display things to users, causing any error handling I do in apollo-link-error to be "double logged" so to speak. Is there any way to prevent the apollo client from throwing…

thumbsup
0
message-simple
2

simple example for last link in link chain

Hi, i need a working example for a single link or last link in link chain. I only want to use client side state, so without HTTPLink but with one link middleware, e.g. from https://www.apollographql.com/docs/link/stateless: If the link is the last in link chain the forward…

thumbsup
0
message-simple
5

Is there any way to use extensions on apollo-link-schema?

thumbsup
1
message-simple
2

Understanding Apollo-Link and storing things into the store.

I'm new to using Apollo/Apollo link and have gone through: https://www.youtube.com/watch?v=2RvRcnD8wHY&feature=youtu.be and the https://www.apollographql.com/docs/link/links/state. Can someone confirm for me that if I want to "store" something into the apollo store do I do it…

thumbsup
0
message-simple
2

Knowing when queries are no longer mounted or watched from Link

Is there a good way to understand what Queries are still active from a Link? I am working on an auto subscription link which needs to listen to outgoing queries and their returned data, and based on what is returned make a number of subscriptions to patch the data. I would like…

thumbsup
0
message-simple
0