3 ms·
If anyone at Hasura is reading this. Are there any plans to make poll frequency configurable on a per-query basis? We have different queries with dramatically
by nicoburns 5y ago
If anyone at Hasura is reading this. Are there any plans to make poll frequency configurable on a per-query basis?
We have different queries with dramatically different latency requirements (e.g. 1 second vs 5 minutes vs 1 hour). Currently we are only using Hasura for the low-latency queries, and are falling back to polling for other things. But it would simplify our development model if we could just subscribe to these changes with a lower frequency.
If we could additionally have some kind of ETAG-style if-not-modified support when initialising connections, that would be extra amazing.
- tango12 5y ago@nicoburns: Yes, this is something that we've been thinking about, but we haven't put a spec together yet. Could you open a github issue with a rough proposal of how you'd like to specify this information? For example: at a subscription level (with a directive or header), or via metadata built-on query collections [1] (what Hasura uses underneath for managing allow-lists). [1]: https://hasura.io/docs/latest/graphql/core/api-reference/schema-metadata-api/query-collections.html https://hasura.io/docs/latest/graphql/core/api-reference/sch...
- jensneuse 5y agoThis feature is available with WunderGraph. You can configure Auth, caching, live query polling etc. at a global level and override it for each individual query: https://github.com/wundergraph/polyglot-persistence-postgresql-mysql-graphql/blob/84505032771b8293a46fbddc05b18f192ef9ba53/.wundergraph/wundergraph.config.ts#L35 https://github.com/wundergraph/polyglot-persistence-postgres... https://github.com/wundergraph/wundergraph-demo/blob/906f72cb19c22131dea960a28a8ee80bb8caff89/.wundergraph/wundergraph.config.ts#L141 https://github.com/wundergraph/wundergraph-demo/blob/906f72c...
- dominotw 5y agoLooks like you are associated with wundergraph( based on your posting history here). Would you mind making that clear in your post given you are posting on a competitors HN post.