Skip to content

Remove usage of panic in graphql resolver #618

@gearnode

Description

@gearnode

Create a gqlutil helper for internal field errors that logs the underlying error and returns a safe “internal error” value at the field level. This lets us keep fields non-nullable (e.g., totalCount: Int!) instead of weakening the schema to nullable types (e.g., Int).

Metadata

Metadata

Assignees

No one assigned

    Labels

    component:apiRelated to API functionality

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions