nicolaslopezj / meteor-apollo-accounts

Meteor accounts in GraphQL
MIT License
146 stars 37 forks source link

Customize Error Messages #58

Open joncursi opened 7 years ago

joncursi commented 7 years ago

Would be great if there were a hook in this library to customize the errors that come back from the graph QL server. Such as using https://github.com/thebigredgeek/apollo-errors

For example, if the error is user is not found, the error is:

GraphQL error: User not found [403]

But I would like it to say

No account for user <user>. Did you mean to sign up instead?