Description
I want to attach a custom directive to a generated mutation create/update field.
- I have searched the issues of this repository and believe that this is not a duplicate.
Summary 💡
Through the mutations in a field definition in a schema i want to be able to do something like entgql.UpdateMutation.Directive('directive name', {args}) to be able to attach the given directive to it. (using the same syntax as the current way to add directives to the gql type would be preffered)
Motivation 🔦
Right now i can create a custom directive for checking the minimum length of a string(for example). but this directive is executed whenever i get a object from the database and not when i insert one through a create/update input.
This leads to me being unable to attach directives to places i want them on. manually this would be possible but we generate our create and update inputs through the mutations and want to attach them in the schema/field definitions.