Tag: stream
-
Helidon: GraphQL with Stream and Defer annotation
0 I am working on a graphql API using Helidon MP and looking to confirm that directives @ stream and @defer supportable? GraphQL documentation link for reference: https://graphql.org/blog/2020-12-08-improving-latency-with-defer-and-stream-directives/ we tried GraphQL @stream and @defer annotation but its not working. We could make it work in Apollo server. graphql stream java-stream graphql-java helidon Share Follow asked…
-
Streaming data using HotChocolate GraphQl for .NET project – all results at once instead of one by one problem
2 I’m using C#, .NET7 minimal API and HotChocolate GraphQl. I’m trying to setup graphQl simple query endpoint which will be able to return stream like this: public async IAsyncEnumerable<string> GetDummyNumbers() { for (var i = 0; i < 10; i++) { await Task.Delay(TimeSpan.FromSeconds(1)); yield return i.ToString(); } } It works as is but even…