Is it really needed having a GraphQL API Endpoint net core 3.1 application

I have created a graphql web api, and all endpoints are working, but If I try to use my Controller instead of the default /graphql I get some errors when trying to parse Json to string. This error occurred when using postman to hit the api controller "/graphql1" that I have created.

Api Controller method signature: public async Task Post([FromBody] GraphQLQueryDTO query)

public class GraphQLQueryDTO
    {
        public string OperationName { get; set; }
        public string NamedQuery { get; set; }
        public string Query { get; set; }
        public Newtonsoft.Json.Linq.JObject Variables { get; set; }
    }

This is the request body:

{
 "Variables":{
 "variable1":"1"
}

  
    

}

This is the error: "errors": {
"$.Variables": [
"The JSON value could not be converted to System.Collections.Generic.IEnumerable`1[Newtonsoft.Json.Linq.JToken]. Path: $.Variables | LineNumber: 2 | BytePositionInLine: 27."]}
How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum