Skip to main content David Edelstein's Blog

🦙
🦙

GraphQL.NET Delay Loading

Published: 2017-10-18
dave@edelsteinautomotive.com
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.


https://gist.github.com/dedels/c41429e8e14092c459d70519e672d265