Open web5gogogo opened 2 years ago
Hello, what kind of validation are we talking about? If it's simple validation that doesn't have to interact with your data storage/db you can use pydantic, otherwise you should check them in your code.
Probably not the most elegant solution, but I had existing Django ModelForms, so I wrote my own helper function that generates a base strawberry input from a ModelForm. I then use that form in my mutation just like I would in a Django view function.
I have many input fields, and each field needs to be verified separately?
Upvote & Fund