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

Cannot orderby a nested.field unless it is requested #22

Closed
MrSwitch opened this issue Dec 14, 2017 · 0 comments
Closed

Cannot orderby a nested.field unless it is requested #22

MrSwitch opened this issue Dec 14, 2017 · 0 comments
Labels

Comments

@MrSwitch
Copy link
Member

MrSwitch commented Dec 14, 2017

fields: ['id', 'name']
orderby: 'anothertable.rank'

throws an exception...

TypeError: Cannot read property 'sql_alias' of undefined
    at dare/src/get.js:430:19
    at unwrap_field (dare/src/utils/unwrap_field.js:19:11)
    at opts.orderby.opts.orderby.map.rule (dare/src/get.js:131:11)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants