
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
- Cannot access my Appwrite database on th...
Hello guys, I am currently developing a web app and using appwrite for authentication, database, storage and messaging. It was working well but since yesterday...
- How to create custom relatime channels
how do i create custome channels for real time communication. for example a room for a game with room code and sending messgaes to that roomcode and receiving m...
- [SOLVED] Row with requested ID doesn't e...
``` async function test() { try { const input = {} const extracted = Object.values(input).map(item => ({ $id: item.postId, ...
