IsakOriginal post
Rank 2: Process
I'm using the .listFiles method to obtain my files. But how should the format on the second argument (queries) be?
TypeScript
const result = await storage.listFiles( 'bucketID', // bucketId [{ name: 'filename' }]);Link: https://appwrite.io/docs/references/cloud/client-web/storage
Summary
To query `storage.listFiles()`, developers should use `Query.contains` instead of `Query.contain`. The correct format for the second argument is an array of objects with key-value pairs for the query parameters. Check the documentation pages for more information: <https://appwrite.io/docs/products/databases/queries> and <https://appwrite.io/docs/references/cloud/client-web/storage>.