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

[Feature Request with breaking change] related fields selection in select param #218

Closed
Darkein opened this issue Aug 14, 2019 · 1 comment

Comments

@Darkein
Copy link

Darkein commented Aug 14, 2019

I think it would be better to select the related fields with the select param instead of join field, because sometimes I need a join to filter my list, but I don't need any field, for exemple If I just want to filter my result on a related table.

for exemple:
/user?join=company&select=id&filter[]=company.id||eq||2
should return
[{id: 1}]

but if I need company id, I can do this:
/user?join=company&select=id,company.id&filter[]=company.id||eq||2
would return
[{id: 1, company: {id: 2}}]

@Darkein Darkein changed the title [feature request with breaking change] joined fields selection in select param [Feature Request with breaking change] related fields selection in select param Aug 14, 2019
@michaelyali
Copy link
Member

added in v4.6.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants