The example provided in the docs here has an example of what looks like a one to many (by passing a nested array of documents)
https://appwrite.io/docs/products/databases/relationships#create-documents
Does this mean to create a one to many, and assuming an arbitrary attribute key name relation_name
, would you post a document in the shape of an object or just the id?
psuedo payload in yaml below:
name: My Object Name
random_boolean_attribute: true
relation_name:
$id: related_object_id
versus
name: My Object Name
random_boolean_attribute: true
relation_name: related_object_id
Recommended threads
- Seed db
hello there... is this correct way to seed appwrite
- Cant configure email templates
i configure it on the console, and when i send the OTP, it sends with appwrite's email (instead of custom smtp) and with the branding, but i have the Pro (educa...
- Need help with createExecution function
Hi, Need some help understanding createExecution. When requesting function execution via createExecution, the function handler arguments are incorrect and rese...