Back

Default value for relationships

  • 0
  • Databases
  • Web
  • Cloud
-N I N J A-
30 Dec, 2023, 04:21

Is there any way to add default value to relationship attribute, If relationship doc deleted It will automatically fill the default relationship document value??

TL;DR
The user is asking if it's possible to have a default value for a relationship attribute and have it automatically fill in with the default value if the relationship document is deleted. They suggest using a function to achieve this.
Drake
30 Dec, 2023, 05:16

Maybe you can do it with a function

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