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

Add Support for GraphQL SUBSCRIPTION in gRPC-GraphQL Wrapper #72

Open
d15c0d3r opened this issue Dec 25, 2024 · 0 comments
Open

Add Support for GraphQL SUBSCRIPTION in gRPC-GraphQL Wrapper #72

d15c0d3r opened this issue Dec 25, 2024 · 0 comments

Comments

@d15c0d3r
Copy link

d15c0d3r commented Dec 25, 2024

The current implementation of the gRPC-GraphQL wrapper lacks support for the GraphQL SUBSCRIPTION type.
Received an error while generating proto files for grpc endpoint with type : SUBSCRIPTION as an option

rpc TestSubscription(TestSubscriptionRequest) returns (TestSubscriptionResponse) {
  option (graphql.schema) = {
    type: SUBSCRIPTION
    name: "test_subscription"
  };
}

proto:106:31: Error while parsing option value for "schema": Unknown enumeration value of "SUBSCRIPTION" for field "type".
make: *** [proto] Error 1)

This limitation prevents real-time updates and event-driven use cases, which are critical for applications requiring live data feeds or asynchronous event handling.

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

No branches or pull requests

1 participant