-
-
Notifications
You must be signed in to change notification settings - Fork 266
type alias not working as expected #130
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
Comments
You also need to add "resolve". Example :
|
Ah, thank you, @anolek. I think I was expecting, based on the following comment in the docs, that adding the column name to the alias would handle the resolve: // 'alias' => 'user_id', // Use 'alias', if the database column is different from the type name I wonder in what instance one might want the alias value to be different form the name of property with which to resolve the field? If this is the intended behaviour, then I'll submit a PR to update the docs. If not, then I'll attempt to PR the change. Thanks again. |
To be honest, I don't think I've ever used the Briefly looking at the code it should work as intended, so I'm not sure where the problem is. You can dig deeper by starting from |
Hello. Really enjoying using this package, but I'm struggling to get the alias key in the type fields method working.
I have the following:
but both

start_period
andend_period
return null:However if I use the column name as the field key:
then the queries work as expected:
Have I misunderstood how the alias works?
Any pointers would be greatly appreciated.
Thanks in advance,
Tim.
The text was updated successfully, but these errors were encountered: