graphql-dotnet / graphql-dotnet/relay

When implementing AsyncNodeGraphType ExecutionStrategy throws InvalidOperationException

Open
#171 7 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C#
Stars
74
Forks
28
PR merge metrics
No merged PRs in 30d

Description

I found that when implementing `AsyncNodeGraphType` the `ExecutionStrategy` class will throw an `InvalidOperationException` since the following call returns null:
https://github.com/graphql-dotnet/graphql-dotnet/blob/ed720f46e26704ed457b723801637d9d726f45bd/src/GraphQL/Execution/ExecutionStrategy.cs#L636

The problem seems to be that the execution strategy is not awaiting the result and is trying to find the GraphType of Task instead of just T.

Our implementation broke after we upgraded GraphQL, here you can see the version of our packages:
```

```

Hope this gives you enough information to fix it

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.