dlukez / graphql-dotnet-dataloader Goto Github PK
View Code? Open in Web Editor NEWBatch data access using DataLoader + GraphQL in .NET
License: MIT License
Batch data access using DataLoader + GraphQL in .NET
License: MIT License
Hi,
Has this repo been sunsetted in favor of:
https://github.com/dlukez/dataloader-dotnet ?
If not, what is the difference?
Thanks!
Began playing with this in a Web API project and came across some async threading issues.
From what I can see, nested continuations (code after await
) are being executed asynchronously on another thread, which means Flush
continues running in parallel, the loop condition is checked the the method returns as subsequent fetches haven't yet been queued.
We have been working with GraphQL DotNet and we started working with this DataLoader. Seemed like a pretty good tool but we have run into an issue that I believe I can recreate in the sample project.
When you have nested calls that invoke the IDataLoader LoadAsync methods it looks like those calls never return. You can run the below query to see the issue first hand. This will eventually timeout.
{humans{name, appearsIn{id, characters{name}}}}
After much digging it appears to happen after going more than 1 level deep. These queries do work:
{humans{name, appearsIn{id}}}
{episodes{characters{name}}}
At first I was sure that I was doing something wrong but upon being able to recreate using the code here I think there may be a problem with the code.
I did some debugging and it looks like the Fetch Method is never being called for the nested characters query.
Any help would be greatly appreciated.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.