Skip to main content David Edelstein's Blog

GraphQL.NET Delay Loading

Published: 2017-10-18
David Edelstein

On the GraphQL.NET documentation their is some discussion about Query Batching… I thought I’d try a proof of concept out myself! Turns out it is extremely easy. The real trick was that the resolve function need to return a Task. All tasks setup during a run should all have the same awaitable under the hood. In this example (with no actual external system) it is just a TaskCompletionSource.