You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This library looks great, and I am looking into the viability of this replacing our our GraphQL nuxt client which is a wrapper around villus
However, two features I am fond of with Villus are the automagic query batching and cache support.
I know manual query batching is possible with graphql-request, but would this module support automatic batching as villus does? If I understand their implementation correctly, you can set an optional (minimal) timeout and it will automatically gather what would otherwise be multiple requests, put them together in a batch, and then send the individual results back to the callee as if it was just one request originally.
Similarly, it does some smart caching by storing any existing queries in memory, and validating any future queries against this cache by comparing the values of the variables and the query.
Loving the codegen and DX of this module compared to villus, but perf-wise would be great to have these features as an option here, too.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi there!
This library looks great, and I am looking into the viability of this replacing our our GraphQL nuxt client which is a wrapper around villus
However, two features I am fond of with Villus are the automagic query batching and cache support.
I know manual query batching is possible with graphql-request, but would this module support automatic batching as villus does? If I understand their implementation correctly, you can set an optional (minimal) timeout and it will automatically gather what would otherwise be multiple requests, put them together in a batch, and then send the individual results back to the callee as if it was just one request originally.
Similarly, it does some smart caching by storing any existing queries in memory, and validating any future queries against this cache by comparing the values of the variables and the query.
Loving the codegen and DX of this module compared to villus, but perf-wise would be great to have these features as an option here, too.
Beta Was this translation helpful? Give feedback.
All reactions