
My database has a parent collection that relates to a lot of child collections, the parent has a pre existing document created, and i want to create the child document, linking the child to the parent, is it possible to just do something like
let response_data = {
"child_attr": "child_data"
};
const resp = await databases.updateDocument(
'database_id',
'parent_collection_id',
'parent_document_id',
response_data
);
i tried doing it this way, and it never returned an error, but also never went to the rest of my function, so it returned:
Return statement missing. return context.res.empty() if no response is expected.
Recommended threads
- JSON and Object Support in Collection do...
I am working with Next.Js and Appwrite Cloud, I am relatively New to Appwrite but i have noticed there is no direct support of JSON and Object support in attrib...
- list() is very slow; eventually shows no...
When I use the web browser to view the collections in my database, the documents they contain are normally displayed within a few seconds. For a few days now, h...
- CSV Not Importing
We don’t seem to having any luck importing a simple .csv file. The import function acts like it’s working but no data imports or is shown in the collection The...
