Skip to content

🐛 Bug Report: static Query function invokation return dynamic data type #136

@Vedsaga

Description

@Vedsaga

👟 Reproduction steps

Try using below code with strict linting configuration such as very_good_analyzer it will not let compile the app.

Query.equal( 'index', [userDocumentId], ),

Version I am using is appwrite: ^8.3.0

👍 Expected behavior

Query.equal( 'idx_business_user_id', [userDocumentId], ),

Data type return by equal should be explicit String.

👎 Actual Behavior

Query.equal( 'idx_business_user_id', [userDocumentId], ),

Seems to return dynamic data type as you can assign dynamic data type to string.

 queries: [
         Query.equal( 'idx_business_user_id', [userDocumentId], ),
],

as you can see queries expect List<String>? but, because Query.equal static function return dynamic so, when you use that static function to create query the data type becomes , List<dynamic> . And, so strict linting analyzer won't let it compile.

🎲 Appwrite version

Different version (specify in environment)

💻 Operating system

Windows

🧱 Your Environment

No response

👀 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