Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Bug Report: query.limit unnoticed #28

Closed
2 tasks done
hinnerkweiler opened this issue Oct 4, 2023 · 0 comments
Closed
2 tasks done

馃悰 Bug Report: query.limit unnoticed #28

hinnerkweiler opened this issue Oct 4, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@hinnerkweiler
Copy link

hinnerkweiler commented Oct 4, 2023

馃憻 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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant