ShibaOriginal post
Rank 2: Process
JSON
{ "$id": "6568c7cb957338cbb5c5", "name": "latest_new_messages", "runtime": "dart-3.0", "execute": [], "events": ["databases.6562ce5dcb5c8d0b005e.collections.6562cf067d4ed0fc8b70.create"], "schedule": "", "timeout": 15, "enabled": true, "logging": true, "entrypoint": "lib/main.dart", "commands": "dart pub get", "ignore": [ ".packages", ".dart_tool" ], "path": "functions/latest_new_messages" }some how databases.6562ce5dcb5c8d0b005e.collections.6562cf067d4ed0fc8b70.create
does not trigger the fuction but databases.* WORKS. and databases.*.collections.*.update
does not
Summary
The user encountered an issue where the function was not triggered when creating a document. The problem was resolved by changing the event listener from `"databases.6562ce5dcb5c8d0b005e.collections.6562cf067d4ed0fc8b70.create"` to `"databases.6562ce5dcb5c8d0b005e.collections.6562cf067d4ed0fc8b70.documents.*.create"`. This change allows the function to listen to document creation within a specific collection. The user also mentioned that listening to all collections with the wildcard identifier `"
