graphql-zeus
graphql-zeus copied to clipboard
✨ Expose better errors
GraphQL v16.5.0 has introduced new types that we can leverage to expose better errors.
Features introduced by this PR:
- [x] Introduced a new class named
ZeusError
, replacing the confusingGraphQLError
- [x] Expose errors as an array of
GraphQLError
s - [x]
ZeusError
is fully serializable and parse-able (new ZeusError(JSON.parse(JSON.serialize(zeusError)))
works great if you don't care about stack-traces)
Breaking changes: none
I also refreshed the examples.
Thank you so much! Will review later today