Replies: 1 comment
-
The take(1) or limit(1), only give ONE result in the first related record. The others will show NO messages, even if they have many... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
in this wonderful package, is there a way to limit the rows of a related model?
Say, I ask for /chat?include=messages... The chat "hasMany" messages, but
I'd like to show only the last one or two for each chat.
Creating a "latestMessages" like this, is NOT working:
Any ideas?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions