daniel-de-wit / lighthouse-sanctum

Laravel Sanctum support for Laravel Lighthouse
MIT License
56 stars 9 forks source link

Replace snake case with camel case in field names #57

Open wimski opened 3 years ago

wimski commented 3 years ago

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.

LiamKarlMitchell commented 1 year ago

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.