
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
- Auth Error
"use client"; import { useEffect } from "react"; import { getSessionCookie } from "@/actions/auth"; import { createBrowserSessionClient } from "@/lib/appwrite-...
- Prevent modifying specific attributes
How do I prevent user to only to be able to modify some of the attributes. Document level security gives full access to update whole document, what are the wor...
- Bypass Error When Creating Account With ...
Suppose user first uses email/pass for log in using xyz@gmail.com, few month later on decides to use google oauth2 with same xyz@gmail.com (or in reverse orde...
