In flutter using appwrite: ^17.1.0, DocumentList response = await databases!.listDocuments(
databaseId: "xxx",
collectionId: "xxx",
queries: [
Query.equal("uid", uid),
Query.limit(1)
],
); why this happing any solution ?
TL;DR
Issue: Error message "Type 'String' is not a subtype of type 'int'" when using Appwrite in Flutter.
Solution: Modify the code snippet by changing the "uid" parameter to a string. Update Query.equal("uid", uid) to Query.equal("uid", "yourStringUid") to resolve the issue.