Skip to content

Conversation

@ssestak
Copy link
Contributor

@ssestak ssestak commented Jan 14, 2026

This PR introduces support for GraphQL subscriptions and deferred (@defer) queries/mutations, enhancing GraphQLAPIKit with real-time and incremental data capabilities. This update allows clients to handle progressive data delivery and continuous streams from GraphQL endpoints. The README.md has been updated with usage examples for these new features.

Key Features:

  • GraphQL Subscriptions: Added subscribe method to GraphQLAPIAdapterProtocol and its implementation, allowing clients to subscribe to real-time data streams.
  • Deferred Queries/Mutations (@defer): Implemented fetch and perform methods for operations using the @defer directive, enabling progressive data delivery via AsyncThrowingStream.
  • New Configuration Type: Introduced GraphQLSubscriptionConfiguration for specific subscription settings.
  • Stream Transformation: A new private helper transformStream facilitates conversion of Apollo's AsyncThrowingStream to `GraphQLAPIKit

Šimon Šesták and others added 2 commits January 14, 2026 16:29
Add protocol methods and implementations for:
- Deferred queries/mutations with IncrementalDeferredResponseFormat
- GraphQL subscriptions via AsyncThrowingStream

All streaming methods return AsyncThrowingStream with proper error
mapping to GraphQLAPIAdapterError and cancellation support.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Updates README to reflect support for GraphQL subscriptions and deferred query responses, including usage examples.
@ssestak ssestak requested review from jmarek41 and samoilyk January 14, 2026 20:05
@jmarek41
Copy link
Member

@ssestak Čus, líbí se mi to jen testoval si to jestli to funguje dle očekávání?

@ssestak
Copy link
Contributor Author

ssestak commented Jan 15, 2026

@ssestak Čus, líbí se mi to jen testoval si to jestli to funguje dle očekávání?

Subscriptions a @defer som bohužial nenašiel na žiadnej free service. Otestované sú zatiaľ iba Queries a Mutácie z predchádzajúceho PRka. Ak budeme všetci za to pridať support práve aj tákéhoto API, nájdem projekt u nás kde by som to otestoval prípadne spravím dáky localhost testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants