youshido-php/GraphQL

Add support for error extensions

Closed this issue · 0 comments

From https://graphql.github.io/graphql-spec/June2018/#sec-Errors :

GraphQL services may provide an additional entry to errors with key extensions. This entry, if set, must have a map as its value. This entry is reserved for implementors to add additional information to errors however they see fit, and there are no additional restrictions on its contents.

We already have this code internally in a project, might as well upstream it.