
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
- Query params are way too limiting in ter...
I was trying to list rows in a table that do not already exist in another table. I retrieved around 260 row IDs which are 13 characters in length each, and then...
- Relationship null, even when relationshi...
Hi Everyone, im experiencing issues with set relation data. When im setting the document id from the related database most of them seem fine, except one table. ...
- REQUEST FAILED IN MIGRATION
I was trying to moved my archived project to a self-host database . Though the Project is "read only" but there's a message that I can view and migrate data to...
