graphql-dotnet / graphql-dotnet/graphql-client

Support for non-standards compliant GraphQL APIs

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

Description

I'm currently trying to integrate with a GraphQL API that was written before the standards, using the GraphQL.Client nuget package.

The host is returning an additional property 'validation' in the error response e.g.:
`{ "errors": [ { "message": "validation", "locations": [ { "line": 2, "column": 29 } ], "validation": { "currency": [ "This field is required" ] }, "customer_facing": false } ], "data": { "createBalanceAdjustment": null } }`

I've had a good look around the docs but can't seem to find a way to get access to anything under 'validation', or simply get access to the raw response JSON.

Any help would be greatly appreciated. Also thanks @Shane32 for pointing me in the right direction to ask the question.

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.