Skip to content

help me!!!!!!!!!! isusing an error #78

Description

@AyushOraonStudent

I'm encountering an issue where the Query[] type is not being accepted in the listDocuments() method from Appwrite's SDK. The error message states that the argument of type Query[] is not assignable to the parameter of type string[], indicating a type mismatch. This occurs when I try to pass an array of Query objects, such as [Query.orderDesc("$createdAt")], to the method. The method seems to expect an array of strings instead of Query objects. This prevents the query array from being passed correctly, and TypeScript throws an error. The expected behavior is that the array of Query objects should be valid input for the method, but it seems the type definition for listDocuments() does not allow this. It might require updating the type or finding an alternative way to pass the queries.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions