I have a database with dynamically created collections. Is it possible to search for properties in all collections in this database?
thanks alnes
No
No, not currently. You can only search in one collection
[SOLVED] is it possible to use listDocuments with a wildcard collection ID ?
you can list all collections, then search in all collections and agregate the results
That's what I thought too, it just doesn't seem too performant to me. Luckily, I found a solution to put all the data to be searched into one collection - with no duplicates in the database. But suffer with string array and then IDs there - is searched with Query.search. It works fine, I would have preferred to use Query.equal and go straight to the properties....
Recommended threads
- Seed db
hello there... is this correct way to seed appwrite
- Query Appwrite
Hello, I have a question regarding Queries in Appwrite. If I have a string "YYYY-MM", how can I query the $createdAt column to match this filter?
- Type Mismatch in AppwriteException
There is a discrepancy in the TypeScript type definitions for AppwriteException. The response property is defined as a string in the type definitions, but in pr...