graphql-dotnet / graphql-dotnet/graphql-client

MissingMethodException on local execution

Open
#340 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
648
Forks
136
PR merge metrics
No merged PRs in 30d

Description

### Package info
Package: GraphQL.Client.LocalExecution
Version: 3.2.3
### Description
`MissingMethodException` thrown when call `SendQueryAsync`.
### Code to reproduce
```csharp
var sourceSchema = Schema.For(@"
type QT {
idField: ID
intField: Int
floatField: Float
stringField: String
}");

var client = GraphQLLocalExecutionClient.New(sourceSchema, new NewtonsoftJsonSerializer());
var request = new GraphQLRequest { Query = "query { __schema { types { name } } }" };
var res = await client.SendQueryAsync(request);
```
### Expected
Query successfully executed.
### Actual
MissingMethodException: Method not found: "GraphQL.Inputs GraphQL.StringExtensions.ToInputs(Newtonsoft.Json.Linq.JObject)".
### Additiona info
Problem appeares when I add in my project reference to package `GraphQl.4.3.0` (latest for now). Package `GraphQL.Client.LocalExecution.3.2.3` depends on `GraphQl.2.4.0`, where required method exists, but when package manager resolve dependencies, it updates package dapendency to 4.3.0, where required method is missing.

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.