Skip to content
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

allow to select fields from related colllection #112

Open
endel opened this issue Dec 8, 2014 · 0 comments
Open

allow to select fields from related colllection #112

endel opened this issue Dec 8, 2014 · 0 comments

Comments

@endel
Copy link
Contributor

endel commented Dec 8, 2014

Currently it is not possible to do the following:

hook.collection('memes').join('auth').select('_id', 'auth.email').then(...)

auth.email is not recognized, generating the following SQL error:

SQLSTATE[42S22]: Column not found: 1054 Unknown column \'app1_auth.email\' in \'field list\' (SQL: select `_id`, `app1_auth`.`email` from `app1_memes` where `app1_memes`.`deleted_at` is null order by `votes` desc limit 11)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant