GraphQlRawResponse
Namespace: Meshmakers.Octo.Sdk.ServiceClient.AssetRepositoryServices.System
The untouched answer of a tenant's GraphQL route. GraphQlRawResponse.Content is the response body as the service sent it, so a script gets exactly what a direct call would have returned.
public record GraphQlRawResponse : IEquatable<GraphQlRawResponse>
Inheritance Object → GraphQlRawResponse
Implements IEquatable<GraphQlRawResponse>
Properties
Content
The response body, unmodified.
public string Content { get; set; }
Property Value
StatusCode
The HTTP status code of the answer.
public HttpStatusCode StatusCode { get; set; }
Property Value
HttpStatusCode
HasErrors
True when the answer carries a non-empty top-level errors array (GraphQL errors arrive with
HTTP 200 as well as with 400). Never throws: a body that is not JSON has no GraphQL errors.
public bool HasErrors { get; }
Property Value
Constructors
GraphQlRawResponse(String, HttpStatusCode)
The untouched answer of a tenant's GraphQL route. GraphQlRawResponse.Content is the response body as the service sent it, so a script gets exactly what a direct call would have returned.
public GraphQlRawResponse(string Content, HttpStatusCode StatusCode)
Parameters
Content String
The response body, unmodified.
StatusCode HttpStatusCode
The HTTP status code of the answer.
Methods
ContainsErrors(String)
internal static bool ContainsErrors(string content)
Parameters
content String