You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've recently found out that naming strategy doesn't applied perfectly when I use it with query builder.
More precisely, it works when I write queries, but it doesn't work with the returned value by the query builder.
I'll attach my example below.
I think if I don't specify aliases with 'as', keys might be ambiguous if I join extra tables, so it might return snake case names.
But I hope camel cases are returned when I specify their aliases.
In my example, user_manner_point to userMannerPoint, or userispro to userIsPro.
Did I miss something or does this package not support this currently?
The text was updated successfully, but these errors were encountered:
HYOSITIVE
changed the title
Naming strategies doesn't applied to query builder return value
Naming strategy doesn't applied to query builder return value
Feb 15, 2023
I've recently found out that naming strategy doesn't applied perfectly when I use it with query builder.
More precisely, it works when I write queries, but it doesn't work with the returned value by the query builder.
I'll attach my example below.
I think if I don't specify aliases with 'as', keys might be ambiguous if I join extra tables, so it might return snake case names.
But I hope camel cases are returned when I specify their aliases.
In my example, user_manner_point to userMannerPoint, or userispro to userIsPro.
Did I miss something or does this package not support this currently?
The text was updated successfully, but these errors were encountered: