devo_wmOriginal post
Rank 1: Thread
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:
YAML
name: My Object Namerandom_boolean_attribute: truerelation_name: $id: related_object_idversus
YAML
name: My Object Namerandom_boolean_attribute: truerelation_name: related_object_idSummary
Developers are asking if nested relations for a two-way many-to-one relationship should be posted with an object containing the ID or just the ID itself. The correct format for the payload is to post the ID directly, without nesting it within an object.