Skip to content
Back

Type String is not a subtype of type int, Flutter Appwrite

  • 0
  • Flutter
showmore
16 Oct, 2025, 14:07

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.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more