cosmo icon indicating copy to clipboard operation
cosmo copied to clipboard

Custom replacement of error values

Open flymedllva opened this issue 1 year ago • 2 comments

Component(s)

router

Is your feature request related to a problem? Please describe.

I have a need for a custom implementation of the message, extensions rewrite of the error. Let's say to configure it through modules. I want to replace message depending on the content in extensions. Also not all my subgraphs substitute extensions correctly, I could bring all the errors to the same format here.

I can do PR if we agree on some implementation

Screenshot 2024-07-24 at 00 23 48

Describe the solution you'd like

I can use values []*fastjson.Value as optionallyOmitErrorExtensions does, or []GraphQLError/subgraphError, which would seem more convenient.

Describe alternatives you've considered

No response

Additional context

No response

flymedllva avatar Jul 23 '24 21:07 flymedllva

WunderGraph commits fully to Open Source and we want to make sure that we can help you as fast as possible. The roadmap is driven by our customers and we have to prioritize issues that are important to them. You can influence the priority by becoming a customer. Please contact us here.

github-actions[bot] avatar Jul 23 '24 21:07 github-actions[bot]

Hi @flymedllva thank you for bringing this up. We have this on the roadmap for the module system v2.

StarpTech avatar Jul 30 '24 09:07 StarpTech