[Error] Invalid document structure: Unknown Attribute: "creator"
- 0
- Android
- React Native
- Databases

I created two collections 1.users 2.products then defined relationship in products with users as one-way | many-to-one | the name of this relation is set as users (I tried rename it to creator but it failed every time)
In a certain page I'm updating product document but it gives this error - [Failed to update product document: Invalid document structure: Unknown attribute: "creator"]

- When did you create these?
- What are the attributes for the collections
- What's your code?

I created the database and collection on 25 July.
users collection has- accountId, username, email, password, avatar, address
products collection has- title, description, category, imageA, imageB, users(relationship with users)
My submit function is like this-
const submit = () => { const updatedProductData = { title: form.title, description: form.description, category: form.category, imageA: form.imageA, imageB: form.imageB, };
// Update the product document await updateProductDocument(form.productId, updatedProductData); } And appwrite function is - [export const updateProductDocument = async (productId, updatedData) => { try { await databases.updateDocument( 'your_database_id', 'your_collection_id', productId, dataToUpdate ); } catch (error) { console.error('Failed to update product document:', error.message); throw error; } };]
Recommended threads
- 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...
- Invalid `success` param
Hi again, I've tried to set up the login process. However, I always get the message: `Invalid success param: URL host must be one of: localhost, xxx` I've alr...
- 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...
