Rank 1: Thread
I have a one to one relationship between "userInfo" and "money".
I tried to update money document but I am getting this error
"Invalid document structure: Missing collection attribute $collection"
It looks like the collectionId in the nested userInfo is money by mistake (You can see from the screenshot).
Here is my code:
const moneyData = await database.getDocument("eserica","money", id); moneyData.sycee -= computeCompanyCost(level); database.updateDocument("eserica", "money", id, moneyData)
I am on npm: appwrite@12.0.0, docker: appwrite@1.3.8.