interface GraphqlExecutionOutcome
Since 0.1.0

The outcome of a GraphQL execution, carrying an HTTP status code for the transport layer to use.

Properties

status: number

The HTTP status code to return under application/graphql-response+json negotiation.

A request error (parse, validation, operation resolution) is 400; a mutation over GET is 405. An operation that actually executed is 200 even when a field error nulls data — a field error is not a request error.

The execution result (may contain errors).

Usage

import { type GraphqlExecutionOutcome } from "common/src/index.ts";