Rank 2: Process
Hello when i try to make one to many relation, allow me to add only 25 items but if my collection contain more than this, how can i solve it ?!
Votes
1
Replies
17
Participants
Unknown
Messages
18
Rank 2: Process
Hello when i try to make one to many relation, allow me to add only 25 items but if my collection contain more than this, how can i solve it ?!
Rank 2: Process
@Moderator
Rank 2: Process
@Core
Moderator
No need to pin everyone 😅
Rank 2: Process
I am sorry but this problem confuse me. 😅
Moderator
I think in such case it will be better to handle that without a relationship
In that case you should use a function to validate that, and only give read permissions to the collection. That way you make sure that write operation must be done by the function
Rank 2: Process
I need to return all documents ?!
If I understood well you want to limit the number of documents in the relation to 25 items right?
Rank 2: Process
Yes i need to return all of collection items
Moderator
You should not get all documents at once
Moderator
Unless it's 100% needed. Instead you should use pagination
Moderator
And not a relationship
I'm very confused by what you're asking
Do you have better examples and more context?
Also please don't tag everyone and be patient. This is a community server, and it's very disruptive to be mass tagging people.
I'm a little confuse too, relationship currently return all child documents, are you talking about parent documents?
Hi @mo7amedtech could you solve it?