Open wimski opened 3 years 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.
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.