Skip to main content

Module graphql_error

Module graphql_error 

Source
Expand description

Canonical GraphQL protocol error types.

Implements the GraphQL specification error format used across the FraiseQL workspace — WebSocket subscription protocol (graphql-ws v5+), HTTP response bodies, and federation subgraph communication.

§Structure

{
  "message": "Cannot query field 'id' on type 'User'.",
  "locations": [{ "line": 3, "column": 5 }],
  "path": ["user", "friends", 0, "name"],
  "extensions": { "code": "FIELD_NOT_FOUND" }
}

Structs§

GraphQLError
A GraphQL protocol-level error as defined in the GraphQL specification §7.1.2.
GraphQLErrorLocation
Location in a GraphQL document (source text) where an error occurred.