i-love-flamingo / graphql

Flamingo GraphQL Module
MIT License
5 stars 1 forks source link

feat(#119): add error presenter function to edit GraphQL error message #123

Closed kgrigorev closed 3 weeks ago

kgrigorev commented 4 weeks ago

In order to address this issue https://github.com/i-love-flamingo/graphql/issues/119 this PR adds ErrorPresenter function which can edit GraphQL validation error messages based on the type of an error. In this case the sentence containing GraphQL type suggestions is trimmed from the error message