{
"$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
- Can't really use the S3 storage device
hi, I've linked my local MinIO Instance (it's just for testing, not for prod.) to my appwrite instance, when i'm uploading a file it's getting uploaded to the S...
- Next.js SSR Site Times Out on First Visi...
Hey everyone, I'm running a Next.js SSR site on a self-hosted Appwrite server (v1.9.0), and I've noticed a strange behavior that I'm hoping someone can help me...
- Quota not resetting
hi, im using appwrite's free tier plani hit my read limts last month and the billing cycle said it would reset on june 4th but that is today, the billing cycle ...