{
"$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
- Function deployment failed: Unable to re...
Hi Appwrite team, I have been experiencing persistent errors when i attempt to push my appwrite functions. The logs on the deployment detail page on the console...
- Github connection error - Self Hosted Ap...
I am trying to connect my github account to deploy a project to sites, but Connect to Gtihub button is disabled. I have configured all Env variables needed for...
- One to many 2 way, console UI not correc...
Hey, seems I'm facing the exactly same issue with this one: https://github.com/appwrite/appwrite/issues/6016 Since this Github issue stay open for so long, let ...