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
- how to access the value of account statu...
- Redirect from clicking team invite link ...
Hi all! Pretty new to app development in general so this might be something more generic than appwrite, but I've found (after reading the docs for the Teams API...
- Hosting Issues with Static IP not domain...
I have a machine with Static Public IP. I want to host Appwrite Site on it but I tried it but it doesn't allow IP addresses in Domain names. What should I do h...