-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added directives to create and update mutations #469
base: master
Are you sure you want to change the base?
Conversation
Hey @a8m, |
Hello @lucvankessel, thank you for your contribution and patience here. I and Ariel already have a discussion about this PR. We think we need some changes to this PR before accepting this. The Directives annotation should work on scoped objects (Object Bellow is my suggestion API. entgql.Directives(entgql.Deprecated("Use `description` instead.")).
OnTypes("Todo"). // Default
OnInputs("CreateTodoInput", "CreateTodoUpdate") cc @a8m |
@giautm thanks for the response. Thanks in advance for your reply. Will look into the suggested implementation in the mean time, |
Hey @giautm and @a8m,
This (i think) will do the same thing you suggested but without the typed types and inputs. |
IMO, this API is more readable than the one proposed by @giautm . This is a useful feature, whats needed to get this moving? |
@lucvankessel, @giautm how about ent/ent#3588 |
This is the fix for this issue i created a few days ago.
Right now however it will add it to the type, create and update mutation.
And i would like to have the option in the future to skip a directive on a type or mutation (create/update) is that something you also agree with adding?