indigotech / onboard-pedro-dietrich

Project for onboarding on Taqtile. Consists in a back-end server to learn about Typescript, Node, GraphQL and other tools.
0 stars 0 forks source link

Format GraphQL error messages #31

Closed pedro-m-dietrich closed 1 month ago

pedro-m-dietrich commented 1 month ago

The GraphQL error messages now use a formatError to customize unsuccessful responses.

The format contains a code (uses the HTTP codes), a message and an optional additionalInfo for further details of the error.