{ "message": "Query method not valid: select", "code": 400, "type": "general_argument_invalid", "version": "0.10.51" }
How i am calling it:
const documentListResponse = await databases.listDocuments( process.env.NEXT_PUBLIC_DB_ID , process.env.NEXT_PUBLIC_COLLECTION_ID, [ Query.equal("user_id", user?.$id), Query.orderDesc("$createdAt"), Query.limit(10), Query.offset(offset), Query.select([ "user_id", "sol_id", "soltype", "solu_status", "cresed", ]), ] )
That query is not available on cloud because cloud is on version 1.1.2 but that query was added in 1.3.0
Ok Thanks, but its shown in documentation, so that's kinda condfusing. Please add some kind of Note there to let Devs know about this.
You can check documentation version for cloud selecting it from the dropdown menu
Recommended threads
- Query Appwrite
Hello, I have a question regarding Queries in Appwrite. If I have a string "YYYY-MM", how can I query the $createdAt column to match this filter?
- Type Mismatch in AppwriteException
There is a discrepancy in the TypeScript type definitions for AppwriteException. The response property is defined as a string in the type definitions, but in pr...
- What Query's are valid for GetDocument?
Documentation shows that Queries are valid here, but doesn't explain which queries are valid. At first I presumed this to be a bug, but before creating a githu...