Search in relationship from main model
I have a order resource, and the order model has orderProducts, hasMany, i want to be able to search in the order.orderProducts.name variable in the table of the order resource, how can i achieve this?
![](https://answer-overflow-discord-attachments.s3.amazonaws.com/1138388098112303184/CleanShot_2023-08-08_at_10.25.34.png)
7 Replies
Did you try it with
order.orderProducts.name
already?Then it does this
![](https://answer-overflow-discord-attachments.s3.amazonaws.com/1138397333348941855/CleanShot_2023-08-08_at_11.04.19.png)
Okay. Thought it might be supported out of the box π
Shouldn't it be
orderProducts.name
?You could custimize the query:
make it work like that?