Back

Invalid Query.Select

  • 0
  • Self Hosted
  • Cloud
Suiii
24 Jul, 2024, 11:35
TypeScript
      Query.select(["$id", "$createdAt", "$updatedAt", "name", "email"])
    );
```  ``` const result = await users.list(testQuery)
    log.info(result)

Response

{"name":"AppwriteException","code":400,"type":"general_argument_invalid","response":{"message":"Invalid queries param: Invalid query method: select","code":400,"type":"general_argument_invalid","version":"1.5.7"}}

appwrite 1.5.7 "node-appwrite": "^13.0.0",

TL;DR
Developers encountered an 'Invalid Query.Select' error when using a query select method in their code. The issue stems from the incorrect usage of the select method within the Query.select function. Solution: Ensure the correct syntax for the query. Use the appropriate method for selecting fields in the query to resolve the error.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more