Skip to content
Back

Relationships

  • 1
  • Databases
  • Web
  • Cloud
nachol_
5 Dec, 2024, 09:27

How do I update the list of related documents of a collection?

I don't want to do a join, just update a relationship attribute to add one more related document but relationship attributes can't be queried

TL;DR
To update the list of related documents in a collection without using a join, you can query all related document ids and then update the relationship attribute with the full list of ids. This will allow you to use delete on cascade.
nachol_
5 Dec, 2024, 09:29

So I can use delete on cascade

nachol_
5 Dec, 2024, 09:32

I guess I have to query all related documents ids and update relationship attributte with the full list of ids

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