Hi, I'm sure this is a common pattern, and most likely there's a few simple steps to do this, but I've not yet seen any docs on something like this. Basically I want to create a document that will contain much of the user's information in my web game and I want to create the initial state on the account.create event. Is there any doc or how to for the best practice for this? Do I need to create a custom function? If so how do I trigger it? Apologies if this is super basic stuff...
Yes! Functions are the way to go. You can configure a function to trigger on an event. See https://appwrite.io/docs/functions
Thanks! I'll give it a shot
Recommended threads
- delete document problems
i don't know what's going on but i get an attribute "tournamentid" not found in the collection when i try to delet the document... but this is just the document...
- Attributes Confusion
```import 'package:appwrite/models.dart'; class OrdersModel { String id, email, name, phone, status, user_id, address; int discount, total, created_at; L...
- Update User Error
```ts const { users, databases } = await createAdminClient(); const session = await getLoggedInUser(); const user = await users.get(session.$id); if (!use...