[Feature Request] Subscription refetch interval per subscription
See original GitHub issueRight now the subscription refetch interval is set globally with the server flag HASURA_GRAPHQL_LIVE_QUERIES_MULTIPLEXED_REFETCH_INTERVAL
.
If I am subscribed to detect new comments in a page 1 second might be too much. I could probably change that to 10 seconds. But if I am tracking mouse movement 1 second might not be enough.
Would it be possible to have the refetch interval in a directive?
subscription {
my_subscription @live_queries_multiplexed(refetch_interval: 10000) {
field
}
}
Issue Analytics
- State:
- Created 3 years ago
- Reactions:8
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Subscriptions - Apollo GraphQL Docs
Subscriptions are intended to be used to subscribe to external data changes, and have those received changes be stored in the cache. You...
Read more >Realtime with GraphQL Subscriptions, React & urql Tutorial
This section is all about bringing realtime functionality to your app using GraphQL subscriptions. What are GraphQL Subscriptions? Subscriptions are a GraphQL ...
Read more >Pull subscriptions | Cloud Pub/Sub Documentation
In a pull subscription, a subscriber client requests messages from the ... also implements support for features such as ordered delivery, ...
Read more >Best practices for improving performance using Azure Service ...
Using certain Service Bus features may require compute utilization that may ... Fanning out to multiple subscriptions on a single topic.
Read more >Automated Re-fetching | Redux Toolkit
RTK Query > Usage > Automated Refetching: cache invalidation ... when a subscription is added for a query endpoint, a request will be...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@wwwdepot The server optimizes the subscriptions. With pooling that is not possible
Use polling instead? https://www.apollographql.com/docs/react/data/queries/#polling