Skip to content
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

Allow changing name generation of order by's #2164

Open
olivernybroe opened this issue Jun 15, 2022 · 0 comments
Open

Allow changing name generation of order by's #2164

olivernybroe opened this issue Jun 15, 2022 · 0 comments
Labels
enhancement A feature or improvement

Comments

@olivernybroe
Copy link
Collaborator

Currently the default order by input field is always named OrderByClause and if using custom order by's it will generate based on different options inside of the OrderByDirective.

In our system we would like to add a rule which forces all input types to be suffixed with Input, however we cannot control the naming generation here.

What I am proposing is a solution where we move all the name generation into its own class with a contract so all the responsibility for the naming is in one place.
This class could have config options for setting a suffix and prefix to make it simple to change this part, and if more customisation would be needed, then people can just make a custom implementation.

@spawnia spawnia added the enhancement A feature or improvement label Jun 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A feature or improvement
Projects
None yet
Development

No branches or pull requests

2 participants