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
- Opening Project I get "500 Internal Erro...
https://cloud.appwrite.io/console/project-fra-69521af1003b40c342b1/overview/platforms I want open my app now. how to fix this? I can't find solution to fix th...
- restore paused project not working
https://cloud.appwrite.io/console/project-sfo-69b1b841002ca6a07f14/overview/platforms
- Exception: Route not found when calling ...
I have self-hosted v1.8.1 and I am using an Appwrite function with node-appwrite v22. When I call the createVarcharColumn() in my server function I get this exc...