Rank 1: Thread
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) }