I was running a query to get some data from the data in the following format
async searchProduct(productName: string) {
return appwriteDatabase.listDocuments(
process.env["NEXT_PUBLIC_APPWRITE_DATABASE_ID"] ?? "",
process.env["NEXT_PUBLIC_APPWRITE_PRODUCT_COLLECTION_ID"] ?? "",
[
Query.select(["name", "description", "cover_image"]),
Query.search("name", productName),
Query.orderDesc("$createdAt"),
]
);
}
And I am receiving the following error
Query Method not valid: Select
Also all the properties exist in the database.
Select is query that was added in version 1.3.x
https://dev.to/appwrite/join-celebrations-appwrite-13-ships-relationships-57fc
If you're using the cloud this won't be possible right now as the cloud still uses version 1.1.x
Okk got it. I am using the cloud so when the cloud version gets updated would the existing project also get updated to the latest version features?
There Is no specific date. but it seems like soon.
Okk got it thanks for the help btw😊😊
[SOLVED] SELECT Query Error
Recommended threads
- Type 'Theme' does not satisfy the constr...
Type 'Theme' does not satisfy the constraint 'Row'. Type 'Theme' is missing the following properties from type 'Row': $id, $sequence, $tableId, $databaseId, a...
- Custom Domain TLS Error (perfinso.com)
Hey Appwrite team/community, I need urgent help with a custom domain setup! I've added perfinso.com to my project, pointed the nameservers, and verification is...
- Is there any reason you cant use a manag...
So quick context I would like to host a selfhosted Appwrite instance and I personally prefer to use managed DBs when able and really like to keep my DBs on dedi...