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
- In which format should i pass the date?
I have a column with the type `datetime`. So i want to know which format is suitable for passing the date
- Function permissions
In my app I have a CreateUser flow which makes several documents and at the end uses the functions.createExecution() to call a server-side function to create a ...
- Bug Report: Crash when trying to createR...
https://github.com/appwrite/sdk-for-android/issues/96 I think the bug is related with this one https://discord.com/channels/564160730845151244/1443887021314539...