Back

About creating a document!

  • 0
  • Android
  • Cloud
salierymoxart
26 Apr, 2024, 21:08

It is possible, when creating a document, programmatically enable the users Relationship function ??'

TL;DR
Developers want to programmatically create a document and relate it to a user at the same time. To achieve this, create a separate collection for user profiles and establish relationships with documents in that collection. This way, you can dynamically link documents to users without directly relating to them during the creation process.
Steven
26 Apr, 2024, 21:36

you mean relate to the User? No. you can't relate to the user. People typically create a collection named something like profiles and then make relationships to that

salierymoxart
26 Apr, 2024, 21:39

Exactly, relate to the user programmatically.(dynamically). I can do it manually, but I need to create the document and relate to the user at the same time (from my app)

salierymoxart
26 Apr, 2024, 21:41

and all because I am reading the json of the parent Document, so that it lists everything related to it.

Steven
26 Apr, 2024, 21:56

yes

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