Please can anyone help with the format by which --queries arguments are constructed with appwrite cli would be greatly appreciated. The only hint I found while searching is this issue https://github.com/appwrite/appwrite/issues/2875 but it following the example didn't work . Keep getting the following error when I tried emulating the example from the issue.
appwrite users list --queries="query.equal('phone','+123456789')"
Error Invalid queries param: Invalid query: Invalid query method
Can you try:
appwrite users list --queries "equal('phone','+123456789')"
It worked! As a follow up question can the fields returned from the queries be filtered? As always, thank you @Steven
I'm marking this post as solved since the original question has been answered
[SOLVED] How to build queries with appwrite cli
Yes, use the select query: https://appwrite.io/docs/apis/rest#queries
Noted, thank you
Recommended threads
- Migration from 1.5.11 to 1.6.2 fails
Hello fellow appwriters. I want to upgrade my appwrite system like the title suggests, but getting the following error during migration. See failure message in...
- Unable to login
I'm unable to login to my account on cloud.appwrite.io. Register mail is yash.tak1998@gmail.com
- 500 Internal Error when Project is opene...
After migrating from 1.6.1 to 1.7.4 I noticed this strange behaviour: When I open a project in a separate tab I get a 500 internal error. However, then I simpl...