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 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}}]
The text was updated successfully, but these errors were encountered:
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
I think it would be better to select the related fields with the
select
param instead ofjoin
field, because sometimes I need ajoin
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}}]
The text was updated successfully, but these errors were encountered: