GithubHelp home page GithubHelp logo

graphql-dotnet-dataloader's People

Contributors

dlukez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

graphql-dotnet-dataloader's Issues

Async threading issues

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.

Nested DataLoader Calls Never Return

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.