-
Notifications
You must be signed in to change notification settings - Fork 450
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
Add support for camelCase in users table #52
Comments
you can alias your fields (columns) with camelCase properties, and this will be picked up and used in your graphQl queries,mutations,subscriptions |
I know that, but I'm using auto-generated GraphQL bindings (GQty), and therefore it will just be cleaner, if you can avoid having to do the renaming manually. |
I use GenQL. you can follow this issue: hasura/graphql-engine#3320. |
@noverby hasura-camelize will do the job. run it before generating types each time |
This is now implemented. All tables in Reference: https://github.com/nhost/hasura-auth/blob/main/src/metadata.ts#L211-L235 |
@elitan I just found out about this feature of Hasura. What happens if I would like to change my naming convention to |
Currently, all user fields are snake_case.
According to https://docs.nhost.io/auth/custom-user-columns, these fields should not be deleted.
But using snake_case does fit well into the standard JavaScript convention to use camelCase.
Therefore, it would be neat if nhost supported camelCase.
The text was updated successfully, but these errors were encountered: