Limit the rows from inner joined table
Hi,
Is there a way to limit the amount of the records I can get from the joined table?
As a single user can have many friends, I would like to limit the amount of friends to lets say 50
{
username: ...
password:...
friends: [ Array with length < 50 ]
}
EDIT: I'm not sure if this is even possible... Thinking of adding additional field inside friends which would help me make the query.
Is there a way to limit the amount of the records I can get from the joined table?
As a single user can have many friends, I would like to limit the amount of friends to lets say 50
{
username: ...
password:...
friends: [ Array with length < 50 ]
}
EDIT: I'm not sure if this is even possible... Thinking of adding additional field inside friends which would help me make the query.