Query only one item from Many-To-Many
I would like only to take one stat not all the arrays. Is there a method to replace limit with something which returns only one item.
11 Replies
You are setting the limmit and orderBy in the intermediate table
Try setting that on the other stat
How I should do that?
Doesn't work like
I should only get the first oldest entry of stat for the that specific server
I'm afraid you'll have to fallback to the crud API
Like sql
Select & Joins, right?
Your initial query was right, I was just testing this
My apologies
What was the problem you had?
This is the response:
I would like to have
No, you have to use the Crud API
What does that mean Crud API in drizzle docs?
This
So manual sql like, I understand
You'd need to do the aggregation yourself
Which basically what the RQB is doing for you