Skip to content
This repository has been archived by the owner on Jul 16, 2022. It is now read-only.

Create a new user profile in "users" collection when a new account is created #288

Closed
gireeshp opened this issue Oct 29, 2021 · 4 comments
Closed

Comments

@gireeshp
Copy link
Contributor

gireeshp commented Oct 29, 2021

A demo to be created in Python function SDK which will create a new user profile in "users" collection of the DB when a new user account is created.

@Rohit484
Copy link

created

@jenniestrongbow
Copy link

A demo that shows how to write files on the server. Thanks

@jenniestrongbow
Copy link

A demo that show how to get the document ID of the document change that triggered the function. Thanks

@lohanidamodar
Copy link
Member

  1. You can create a separate issue for sample to write files on server, but you can use Appwrite's storage API to write file to server.
  2. Whenever a function is triggered by system events, you get the payload in APPWRITE_FUNCTION_EVENT_DATA environment variable. which contains $id that is the id of the document.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants