[SOLVED] On Creating a Document does not trigger Function.
- 0
- Resolved
- Self Hosted
- Functions
- Databases
{
"$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
- I'm getting an error on the console "j?....
On my self hosted instance version 1.8.1 the console is giving me this error when trying to view the rows for a table I recently created. My application is read...
- local build `composer installer:dev` iss...
setup - dev container (default linux universal) WSL (test with gh codespace too) - php 8.5.7 - all extensions installed - `composer install` fine - `composer...
- Websites hosted on my appwrite sites hav...
Hello, all my websites hosted on appwrite sites are not running I am getting this message "This site can’t be reached drivehub.appwrite.network took too long t...