Skip to content

Improve Error Handling in GraphQL API #69

@GV14982

Description

@GV14982

Task Description

Right now we are just kind of propagating errors up the call stack. We should be wrapping our errors with context from the error source, especially inside services and resolvers. For resolvers specifically gqlgen comes with some handy functions for wrapping errors and setting them on the response.

Acceptance Criteria

  • All errors should be wrapped to provide additional context
  • Setup a custom error types to make errors easier going forward
  • Update the presenter to handle these custom error types and transform any that are not suitable for users

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions