Hey, this keeps behaving strange.
I asked this in general previously and added an issue to https://github.com/appwrite/sdk-for-dotnet/issues/28 already with no luck.
Maybe I got wrong what I found in the documents, but when I
ˋˋˋ{
int number = 5;
try
{
List<string> queryList = new List<string>{
{Query.Equal("validated", false)},
{Query.Equal("language", lang)},
{Query.Limit(number)}
}
[…]
var quotes = await databases.ListDocuments(
databaseId: databaseId,
collectionId: collectionId,
queries: queryList);
return Results.Ok(quotes);
}ˋˋˋ
I would expect this to return a maximum of ˋ5ˋ Documents where ˋvalidatedˋ is ˋfalse ˋ and ˋlanguage ˋ is (whatever is set as query parameter). The .equal selection works but it keeps returning ALL the documents where they fit not just the first 5.
Put the 3 backticks on a line by itself to make the formatting show properly
This does seem right...
What's the omitted code?
How many documents do you have in your collection?
I get 268 out of 345 back but that can easily become 1000+ soon 🙂 (zorry for the formatting. Wrote this on my tablet this morning)
What makes you say you get 268 back?
Haha…well… it says total:268 in the json … never really scrolled down 🫣
Right that tells you how much is in the database with the filters applied so you can do pagination.
So does the response actually only contain 5 documents?
Sure it does 🙈
And I am due for vacation now.
[SOLVED] still fighting with #dotnet-sdk document limitation
Recommended threads
- Function running for more than 2 hours i...
This is my projectID: 669fe01b003800dd0503 Cloud functionID is 696ea05400147eb8eb3b I hope this doesn't count against my GB-hours?
- change role of a team member in Appwrite
It's not possible to add/change roles of a team meber in Appwrite Frontend. When you click on a member of a team you get forwarded to the configuration page of ...
- Session not found. Please run appwrite l...
I have encounter an issue with appwrite CLI They asking for a login session but in the doc, it’s mention that only setup client with endpoint / api key is enou...