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

Replace snake case with camel case in field names #57

Open
wimski opened this issue Jun 3, 2021 · 1 comment
Open

Replace snake case with camel case in field names #57

wimski opened this issue Jun 3, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@wimski
Copy link
Collaborator

wimski commented Jun 3, 2021

The only real issue with this are the password_confirmation fields, which can't easily be replaced with camel case because of the internal magic of the rule.

@wimski wimski added the enhancement New feature or request label Jun 3, 2021
@LiamKarlMitchell
Copy link

Can use @rename directive from lighthouse?

https://lighthouse-php.com/master/api-reference/directives.html#rename

passwordConfirm: String! @rename(attribute: "password_confirmation")

Looks like it can be used on an input type but I'm not sure how it will play with rules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants