![](https://cdn.discordapp.com/avatars/938501902776287322/cb715120cbc33cef13cac558458ee27e.webp)
I have for testing a very easy query and even this is not working:
TypeScript
var query = new List<string>
{
Query.Limit(1)
};
var result = await database.ListDocuments(databaseId: databaseId, collectionId: collectionId, queries: query);
result still has 2 documents (my collection has 2 documents) as if I am calling ListDocuments without the query.
I am using: AppWrite Cloud Version 1.5.7 .NET SDK 0.8.3.0
TL;DR
Issue: Query is not being applied when using .NET SDK with AppWrite Cloud Version 1.5.7. Result still shows all documents instead of limited to 1.
Solution: The issue might be due to incorrect implementation of the query. Try updating the query format as follows:
```csharp
var query = new List<Filter>
{
new Filter
{
Limit = 1
}
};
var result = await database.ListDocuments(databaseId: databaseId, collectionId: collectionId, filters: query);
```
By adjusting the query format to use `Filter` and specifying the `Limit` property Recommended threads
- java.net.SocketException: Software cause...
Hello! I'm creating an Android Java application and using the Appwrite SDK. I've encountered a problem. The fact is that when I try to perform some operation in...
- Anonymous Users Expiration Date
Do Anonymous Users have an expiration date (on mobile platforms using flutter)? And If so is there a way to have a control over that period? Basically what I'm ...
- Daily Active User and Monthly Active Use...
hello Guys, please how do i achieve daily active user and monthly active user on my flutter app
![](/images/bgs/pre-footer.png)