Back

Problem when creating a document with a relationship attribute

  • 0
  • Flutter
loole2543
17 Jan, 2024, 14:25

Hello, first of all, sorry for my bad english, it's not my natural language. I try to create a collection of appointments (RendezVous). I set an attribute in relation with another collection of patients. When I create a new document in appointments, it works if the patient doesn't exists. It creates the patient and the appointment. But if the patient already exist, it throws me a 401 error. Thanks for your help.

TL;DR
Developers are encountering a problem when creating a document with a relationship attribute. If the patient doesn't exist, it works fine, creating both the patient and the appointment. However, if the patient already exists, a 401 error is thrown. They are seeking assistance.
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