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
- Session not found. Please run appwrite l...
I have encounter an issue with appwrite CLI They asking for a login session but in the doc, it’s mention that only setup client with endpoint / api key is enou...
- The console isnt showing documents
In console ui saved documents are being shown on frontend but i can see its showing 4 or number of docs available but in rows its only showing single doc and th...
- Create a project via REST API or SDK, mi...
I am currently self-hosting Appwrite in my local machine, deployed using docker script in the website. I also installed `appwrite-cli` through npm. I am trying...