question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Better async support

See original GitHub issue

Setup a quick test project - this library works very well and is a real layer of sanity on top of graphql-dotnet. I noticed the querying is all sync, and presumably async would be better?

Looks like graphql-dotnet supports awaiting resolvers: https://github.com/graphql-dotnet/graphql-dotnet/issues/205#issuecomment-257482356

At first glance, it looks like just SqlQueryContext needs an ExecuteAsync companion method.

Would this make sense/be within the goals of your library?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
benmccallumcommented, Apr 18, 2018

Thanks Doug!

1reaction
dougrdaycommented, Mar 28, 2018

This was released to NuGet in version 0.2.1-beta: https://www.nuget.org/packages/Dapper.GraphQL/0.2.1-beta

Read more comments on GitHub >

github_iconTop Results From Across the Web

5 async/await best practices
Simply put, async/await is a way to write asynchronous code that looks and behaves like synchronous code. It allows you to pause the...
Read more >
Asynchronous support
Django has support for writing asynchronous (“async”) views, along with an entirely async-enabled request stack if you are running under ASGI. Async views...
Read more >
Even with async/await, raw promises are still key to writing ...
Understanding promises helps understand the concepts at the foundation of async/await, and help you write better async functions. But even if you're already...
Read more >
Unlocking Performance: A Guide to Async Support in Django
In the world of Django, async support has emerged as a powerful tool for unlocking ... The main advantage of async programming is...
Read more >
How can async support dispatch between sync and async ...
Problem A common scenario for library authors is that they accept some callable as a callback for user-defined logic.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found