I wounder if in-case of many relationship, what is the limit of child document that will be returned? If there is limit then what exactly is, and if no then what if 10^3 doc is linked 👀
And if there is limit then how we are supported to do pagination for next set of documents?
Hi - do you mean the levels to which you can access relationships?
hi, nope nope, I mean in many relationship, there could n number doc could be linked, and as it could be infinite so when you query A right it return all the Z doc linked to it. So, is n is 1K documents will it return all 1K at once>
maximum 3 nested relations, and no pagination I believe (you would need 2 separate requests).
no no I was not asking about layer of linking, this is layer of linking, I was not referring to this,
I was trying to ask, as there could be 3 doc which belong to collection Z could be linked to a document of collection A, and as right now when you fetch a document from collection A you get all 3 linked document.
Now, imagine 3 doc which belong to collection Z linked with a document of collection A will this time when you fetch a document from collection A result in returning all 1000 linked Z documents?
Seems, answer for now is yap infinity, you will get infinite documents... you can not limit the no child document you receive.
Hey @Vedsaga , is this resolved? Actually, relationships is still in beta so we might not actually always have what you might be looking to implement, but, that being said, we definitely want to hear more features and things you want us to introduce into relationships. Feel free to open GH issue for anything you think should be a part.
yap, I will mark it resolved
[RESOLVED] Child document fetch limit for relationships?
Recommended threads
- Usage of the new Client() and dealing wi...
Hey guys, just a quick one - we had some web traffic the other day and it ended up bombing out - To put in perspective of how the app works, we have a Nuxt Ap...
- Increase by operators
I see appwrite have bunch of useful operators for querieng db. One more I would like to suggest is operators like increase the count of a int columns by 1,2.. ...
- createCollection Deprecated