Back

Query method not valid

  • 0
  • Flutter
kanhaiya lal bohra
7 May, 2023, 11:05

final response = await _db.listDocuments( databaseId: Allconst.databaseId, collectionId: collectionId, queries: [ Query.select(["A", "B"]) ]);

TL;DR
The user is getting an error message stating that the query method is not valid. The error is likely caused by using an incompatible version of the Appwrite cloud, as the current version (1.1.2) does not support the query.select method. The user is advised to check their version of Appwrite and the SDK they are using. The recommended solution is to upgrade to version 1.3 or higher to use the query.select method.
Drake
7 May, 2023, 14:41

What version of Appwrite are you using and what version of the SDK are you using?

Drake
7 May, 2023, 14:41

Btw, it's best to use 3 back ticks with multi-line code. See https://www.markdownguide.org/extended-syntax/#syntax-highlighting

Prateek Jain
8 May, 2023, 08:19

If you are using appwrite cloud..it is not supported yet as the current version is 1.1.2 and the query.select requires min 1.3 version

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