I am trying to access the users from a cloud function and everything works good, but when I add the select attribute to only select couple of fields but I get this error:
{"code":400,"type":"general_argument_invalid","response":{"message":"Invalid queries param: Invalid query method: select","code":400,"type":"general_argument_invalid","version":"1.4.13"}}
this is my code
if (queryStr.lastId) {
log('paginating')
queries.unshift(Query.cursorAfter(decodeURIComponent(queryStr.lastId)))
const response = await users.list([
...queries,
Query.select(['$id', 'name'])
])
return res.send(response)
}
You're trying to get 1 user?
The ID is unique, so I think you should not use list endpoint to get 1 user
Recommended threads
- THE COLUMNS STUCK ON PROCESSING HOW DO I...
I HAVE SELF HOSTED THE APPWRITE ON VPS
- Impossible to create project via CLI?
Is it possible to create a new project via the appwrite CLI ? I need to create a few projects for something I'm working on and because i don't want to do it man...
- Understanding S3 setup with appwrite
Hey, i'm planning to change the storage from local to S3, tho i have some questions to see before starting the migration. 1. Does all the `/storage/<storage_ty...