GraphQL by Joe McBride

<PackageReference Include="GraphQL" Version="7.1.1" />

.NET API 721,408 bytes

 ExecutionResult

public class ExecutionResult
Represents the result of an execution.
public object Data { get; set; }

Returns the data from the graph resolvers. This property is serialized as part of the GraphQL json response. Should be set to null for subscription results.

public GraphQLDocument Document { get; set; }

Returns the parsed GraphQL request.

public ExecutionErrors Errors { get; set; }

Returns a set of errors that occurred during any stage of processing (parsing, validating, executing, etc.). This property is serialized as part of the GraphQL json response.

public bool Executed { get; set; }

Indicates if the operation included execution. If an error was encountered BEFORE execution begins, the data entry SHOULD NOT be present in the result. If an error was encountered DURING the execution that prevented a valid response, the data entry in the response SHOULD BE null.

public Dictionary<string, object> Extensions { get; set; }

Returns additional user-defined data; see OutputExtensions and OutputExtensions. This property is serialized as part of the GraphQL json response.

Returns the GraphQL operation that is being executed.

public PerfRecord[] Perf { get; set; }

Returns the performance metrics (Apollo Tracing) when enabled by EnableMetrics.

public ROM Query { get; set; }

Returns the original GraphQL query.

public IDictionary<string, IObservable<ExecutionResult>> Streams { get; set; }

Gets or sets a dictionary of returned subscription fields along with their response streams as IObservable<T> implementations. Should be set to null for query or mutation results. According to the GraphQL specification this dictionary should have exactly one item.

public ExecutionResult()

Initializes a new instance with all properties set to their defaults.

Initializes a new instance as a clone of an existing ExecutionResult.

Adds the specified error to Errors.

Adds errors from the specified ExecutionErrors to Errors.