graphql-dotnet / graphql-dotnet/graphql-client

How to handle Graphql responses in a different format rather than "data"

Open
#403 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

from what I see the client expects that the graphql response from the server has a "data" property with the result, what if our API response with a custom format like this, how I can customize it so the Serialization, bc right now I got null in the response.data obj.

This is our graphql response format
`{
"StatusCode": "Success",
"ServerName": "NAME",
"ClientIP": "SOME IP",
"ExecutionTime": "00:00:00.3523738",
"Result": {
"entities": [
{
"Id": 34,
"type": "ResultType",
"level": "High"
}
]
}
}`

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.