{
"$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
This event will listen to any collection with 6562cf067d4ed0fc8b70 ID creation.
To listen to documents creation within a collection, you'll need to add one more identifier
-databases.6562ce5dcb5c8d0b005e.collections.6562cf067d4ed0fc8b70.create
+databases.6562ce5dcb5c8d0b005e.collections.6562cf067d4ed0fc8b70.documents.*.create
This way you will listen to the documents.*.create events and not for the collection create one.
<:appwriteheart:782571497393750036>
how did u do this please tell!
Like so
ok thanks!
[SOLVED] On Creating a Document does not trigger Function.
Recommended threads
- Help
- Python TablesDB Rework
Hi, i starting to rework some older functions to TablesDB list_rows Method. I used list_documents with a resultset with worked fine. Now i tried to get all rows...
- HUGE OUTRAGE IN APPWRITE, I CANNOT ACCES...
I have 2k users trying to access, sending me messages. What am I supposed to do? Please solve this asap.