Back

How to create new document on account creation?

  • 0
  • Web
  • Databases
  • Accounts
  • Users
  • Functions
Triptych
13 Aug, 2023, 00:51

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...

TL;DR
User wants to create a new document on account creation in their web game. They are unsure if they need to create a custom function and how to trigger it. A possible solution is to configure a function to trigger on the account.create event. Documentation on how to use functions can be found at <https://appwrite.io/docs/functions>.
Drake
13 Aug, 2023, 01:31

Yes! Functions are the way to go. You can configure a function to trigger on an event. See https://appwrite.io/docs/functions

Triptych
13 Aug, 2023, 01:34

Thanks! I'll give it a shot

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more