Skip to content

🐛 Bug Report: query.limit unnoticed #28

@hinnerkweiler

Description

@hinnerkweiler

👟 Reproduction steps

Hi. I asked this on discord already with no success for an answer. 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);        
}

👍 Expected behavior

returns 5 Documents where validated is false and language is (whatever is set in query parameter)

👎 Actual Behavior

returns 274 documents. Where validated is false and language is (whatever was set in query parameter)

🎲 Appwrite version

Different version (specify in environment)

💻 Operating system

Linux

🧱 Your Environment

The Api (dotnet api project) runs on ubuntu 22.04.3 LTS and queries another machine running Appwrite 1.4.3 using dotnet-SDK 0.6.0

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions