
I've recently started playing with Appwrite Cloud to evaluate it as an alternative to firebase and thus far have been very pleased. I just started playing with the relationships and am seeing some behavior that is confusing me and was hoping I could get some clarification.
Right now I have two collections (c1 & c2) with a one to many relationship between them. If I try to add an existing relationship with an ID as described in the docs it works, and if I try to create new documents by passing in just the child's data that also works. The issue I am hitting is trying to preform an upsert operation on the children.
According to the docs if I pass a document ID with the child it will create a new document if it does not exsist and update the current one if it does, but does not specify what the document ID field name should be or if the data needs to be structured differently. I assumed $id
but when I try to use that I get a 401 unauthorized error (I assume this is bc it may be trying to create an attribute for $id
).
Does anyone know how the requests should be structured for sending children with document ids attached to them?
Recommended threads
- Cannot add/update array field
How do I add or update the rows, How exactly to pass properties? (see provided image)
- TablesDB not available in FRA?
Hi, in the cloud version, v1.8.0 Frankfurt, is it possible to use TablesDB ? I don’t see that feature in the console.
- Query.equal error
Hi guys. I'm using Appwrite Cloud, and I'm using version 21 of node-appwrite to benefit from transactions. The problem is I seem to be getting an error when I u...
