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
- Type Mismatch in AppwriteException
There is a discrepancy in the TypeScript type definitions for AppwriteException. The response property is defined as a string in the type definitions, but in pr...
- What Query's are valid for GetDocument?
Documentation shows that Queries are valid here, but doesn't explain which queries are valid. At first I presumed this to be a bug, but before creating a githu...
- Appwrite exception: user_unauthorized, t...
After refreshing the app it is working perfectly