Im trying to add meilisearch to my project, according to the Sync with Meilisearch function template, i need appwrite collection and appwrite database variables... my project runs with multiple databases and each database with multiple collections (obviously), its possible to sync all the databases and all collections instead creating multiple functions for each database/collections? each database has at least 7 collections i want to add to meilisearch, and i have atm 25 databases that means 175 functions atm, every user has its own database with its own collections (all collections are the same within databases)
TL;DR
To sync multiple databases and collections with MeiliSearch without creating separate functions for each, you can use a loop to iterate through all databases and collections. This way, you can dynamically sync all collections without hardcoding each one.