I'm just learning .NET Core and GraphQL and can't get a single example from the web (and I've tried a dozen) to work. They're all using this library https://graphql-dotnet.github.io and every time I try to hit the endpoint with a valid GraphQL query I get the following response:
{
"errors": [
{
"message": "Unmapped selection Field",
"extensions": {
"code": "EXECUTION_ERROR"
}
}
]
}
One of the examples: https://github.com/mmacneil/ASPNetCoreGraphQL
I can't seem to find anything googling that error, and there's not much help with the documentation regarding that. I'm hoping for someone who has worked with the library and had the same issues.
This is the error from the result of the query executing in GraphQLController:
InnerException = {GraphQL.ExecutionError: Unmapped selection Field
at GraphQL.Language.CoreToVanillaConverter.Selection(ASTNode source)
at GraphQL.Language.CoreToVanillaConverter.SelectionSet(GraphQLSelectionSet source)
at GraphQL.Language.CoreToVanillaConverter.Operation(GraphQLOperationDefinition source)
at GraphQL.Language.CoreToVanillaConverter.AddDefinitions(GraphQLDocument source, Document target)
at GraphQL.Language.CoreToVanillaConverter.Convert(String body, GraphQLDocument source)
at GraphQL.Execution.GraphQLDocumentBuilder.Build(String body)
at GraphQL.DocumentExecuter.ExecuteAsync(ExecutionOptions options)
This is also my first post here. Let me know if you need more info.