Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subscription queries extensions #17

Closed
sandjelkovic opened this issue Jan 14, 2020 · 0 comments · Fixed by #196
Closed

Subscription queries extensions #17

sandjelkovic opened this issue Jan 14, 2020 · 0 comments · Fixed by #196

Comments

@sandjelkovic
Copy link
Member

sandjelkovic commented Jan 14, 2020

To use Subscription queries, gateway methods require ResponseType objects to be used to indicate return types.

To make it Kotlin idiomatic, extension methods on QueryGateway should be implemented to use reified generics, provide a method per ResponseType (Single without a suffix/Optional/Multiple Many) and forward those calls to existing methods on the QueryGateway. The same ResponseType can be used for both Initial and Update response types.

Examples of these types of extensions created for the query method can be found here

This issue is similar to #11 and #16, but for different methods and types of queries.

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

Successfully merging a pull request may close this issue.

2 participants