Content Deep Dive
GraphQL's @defer and @stream Directives are overkill
Blog post from Wundergraph
Post Details
Company
Date Published
Author
Jens Neuse
Word Count
2,396
Language
English
Hacker News Points
2
Summary
The author of the text is reevaluating the usefulness of GraphQL's `@defer` and `@stream` directives, which they previously used in their own implementation. They conclude that these directives are overkill for most use cases and instead recommend using a simpler approach with WunderGraph Cosmo, which uses JSON Patch to incrementally load data. This solution is more efficient, easier to implement, and provides better control over the data flow. The author argues that micro-optimizations should be avoided in most cases, but if needed, control over the data flow should be in the hands of the API provider.