nexus icon indicating copy to clipboard operation
nexus copied to clipboard

Plugin api to extend input types

Open olup opened this issue 6 years ago • 4 comments

Browsing through plugin examples, I was wondering, is there a way to extend input fields as well as output ones ? Something to build custom fields validation, for example ?

My love goes to this library !

olup avatar Feb 03 '20 17:02 olup

I created a plugin for validation of parameters, you can check it out here https://github.com/huv1k/nexus-arguments-validation

huv1k avatar Feb 03 '20 19:02 huv1k

Interesting ! However, if I understand correctly, this allows validation on one mutation / query type. However, it does not let you add validation to a custom input type that could be re-used as argument in any query / mutation type and be validated.

olup avatar Feb 03 '20 19:02 olup

I agree this is missing, I was looking for that. I will add that to my todo list.

Sytten avatar Aug 19 '20 14:08 Sytten

Hey @olup I recently created a validation plugin, which might be what you're looking for. Check it out and tell me what you think!

ahmedosama7450 avatar Mar 26 '22 18:03 ahmedosama7450