Back

[SOLVED] CLI: can't pass array of query params

  • 0
  • Tools
Gildas Quiniou
6 Dec, 2023, 14:23

Hi, I cannot find how to pass more than one "query" param in CLI. This works : appwrite databases listDocuments --json --databaseId xx --collectionId yyy --queries limit(100) but this won't appwrite databases listDocuments --json --databaseId xx --collectionId yyy --queries [limit(100),offset(100)] I tried to put strings "[limit(100)","offset(100)"], escape the bracket \[...\], nothing works. Can you help me please? Thx.

TL;DR
Title: [SOLVED] Issue with passing array of query params in CLI Messages: User was having trouble passing multiple "query" parameters in CLI. They tried different methods to no avail. Another user provided a solution by using separate `--queries` flags for each parameter: `--queries "limit(100)" --queries "offset(100)"`. The user expressed gratitude and mentioned contributing an example to the documentation.
Ernest
6 Dec, 2023, 14:34

Checkout this post. I need to contribute an example to the docs. https://discord.com/channels/564160730845151244/1172594759911620682

Gildas Quiniou
6 Dec, 2023, 16:22

Thanks for the link. It didn't help but reading it I understand the expected Array of queries is not an Array, so I tried successfully a --queries "limit(100)" --queries "offset(100)"!

Gildas Quiniou
6 Dec, 2023, 16:22

[SOLVED] CLI: can't pass array of query params

Ernest
6 Dec, 2023, 17:20

Glad to help even if indirectly

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