![](https://cdn.discordapp.com/avatars/797218349015760896/7661bb3db68d8f4a0e9573da39e00762.webp)
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.
![](https://cdn.discordapp.com/avatars/462046107556511744/504fd808296728e8e89d82b8ea1e77a9.webp)
Put the 3 backticks on a line by itself to make the formatting show properly
![](https://cdn.discordapp.com/avatars/462046107556511744/504fd808296728e8e89d82b8ea1e77a9.webp)
This does seem right...
![](https://cdn.discordapp.com/avatars/462046107556511744/504fd808296728e8e89d82b8ea1e77a9.webp)
What's the omitted code?
How many documents do you have in your collection?
![](https://cdn.discordapp.com/avatars/797218349015760896/7661bb3db68d8f4a0e9573da39e00762.webp)
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)
![](https://cdn.discordapp.com/avatars/462046107556511744/504fd808296728e8e89d82b8ea1e77a9.webp)
What makes you say you get 268 back?
![](https://cdn.discordapp.com/avatars/797218349015760896/7661bb3db68d8f4a0e9573da39e00762.webp)
Haha…well… it says total:268 in the json … never really scrolled down 🫣
![](https://cdn.discordapp.com/avatars/462046107556511744/504fd808296728e8e89d82b8ea1e77a9.webp)
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?
![](https://cdn.discordapp.com/avatars/797218349015760896/7661bb3db68d8f4a0e9573da39e00762.webp)
Sure it does 🙈
![](https://cdn.discordapp.com/avatars/797218349015760896/7661bb3db68d8f4a0e9573da39e00762.webp)
And I am due for vacation now.
![](https://cdn.discordapp.com/avatars/462046107556511744/504fd808296728e8e89d82b8ea1e77a9.webp)
[SOLVED] still fighting with #dotnet-sdk document limitation
Recommended threads
- How to implement Google Authentication a...
Hi, I implemented Appwrite Google Authentication in NextJS v14.1.3 and successfully implemented the sign in feature (on SSR) when trying it in localhost, but wh...
- Bandwidth increasing doubts
Hello , I don't want to disturb you , I just want to get my answers , My question is , I am not using any functions or storage , just using db and users auth ,...
- How to alter attributes in collections
Hi there, unluckily I made avatar as string. I should have make it URL. I forgot. Now my URLs for avatar coming more than 156 char. For hot fix, I need to use l...
![](/images/bgs/pre-footer.png)