Class GraphQLResponseData

Namespace
ProtoTest.GraphQL
Assembly
ProtoTest.GraphQL.dll

Response data attached to a graphql.response observation.

public sealed record GraphQLResponseData : IEquatable<GraphQLResponseData>
Inheritance
GraphQLResponseData
Implements
Inherited Members
Extension Methods

Constructors

GraphQLResponseData(string, string?, string, int, int, IReadOnlyList<string>, TimeSpan, string?)

Response data attached to a graphql.response observation.

public GraphQLResponseData(string OperationType, string? OperationName, string Document, int HttpStatusCode, int ErrorCount, IReadOnlyList<string> ErrorCodes, TimeSpan Duration, string? VariablesJson = null)

Parameters

OperationType string
OperationName string
Document string
HttpStatusCode int
ErrorCount int
ErrorCodes IReadOnlyList<string>
Duration TimeSpan
VariablesJson string

Properties

Document

public string Document { get; init; }

Property Value

string

Duration

public TimeSpan Duration { get; init; }

Property Value

TimeSpan

ErrorCodes

public IReadOnlyList<string> ErrorCodes { get; init; }

Property Value

IReadOnlyList<string>

ErrorCount

public int ErrorCount { get; init; }

Property Value

int

HttpStatusCode

public int HttpStatusCode { get; init; }

Property Value

int

OperationName

public string? OperationName { get; init; }

Property Value

string

OperationType

public string OperationType { get; init; }

Property Value

string

VariablesJson

public string? VariablesJson { get; init; }

Property Value

string