Skip to content

Configurable TypeScript types for query result errorsΒ #1520

@SeppahBaws

Description

@SeppahBaws

Describe the feature

Currently we only define the "message" property on the query result error type, but in reality the spec also defines optional locations, path and extensions properties.

The shape of the extensions field is a map that is up to the server implementation to fill out. It might be useful for Houdini users to define a type that matches the response of the server they're using.

link to relevant GraphQL spec: https://spec.graphql.org/October2021/#sec-Errors

Criticality

cool improvement, my projects will benefit from it

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementA new feature or improvement to Houdini's public API

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions