
I’m not quite clear on what you’re doing here?

The database ID is the first parameter to the database.createDocument()
or database.updateDocument()
method



i have these that appwrite adds when getting the data

What is this?

data that im getting from appwrite

So where’s the error?


What’s the code that’s triggering that error?

this one

Wait, that error is coming back when calling databases.listDocuments()
? Not when creating/updating a Document?

oh wait

sorry th

the first picture wasn't sent

mb


And what’s in newtag
?

{ monday: 'm', tuesday: 'azd', wednesday: 'w', thursday: 't', friday: 'f', saturday: 's', sunday: 's', user: '65e760c118cde1ce4ebf', '$id': '661e594110cd04682356', '$createdAt': '2024-04-16T10:56:01.071+00:00', '$updatedAt': '2024-04-16T14:37:08.599+00:00', '$permissions': [], '$databaseId': '65ce3bba5179ce91f4ae', '$collectionId': '65d5ded409a3fc3353db' }

Ah - so there’s your issue - all the Attributes beginning with $
are system Attributes which can’t be set.

yess exactly

So you’ll need to remove them from newtag
before passing it in to databases.updateDocument()

yes i did that but thought if it was system attributes why wouldn't the update ignore it in the first plcae then

thought i was doing something wrong

Yeah, I would expect it should, too.
Recommended threads
- Adding custom domain to Appwrite project
My app is hosted on Vercel on domain todo.velleb.com. On PC, the OAuth logins like GitHub, Discord and Google work and create the account and log in. On mobile ...
- #support
<#1072905050399191082> any help on that?
- Early Validation of Password Reset Token...
Hey there, I'm dealing with an issue with password reset flow and wondering how you handle this. Right now, when someone clicks an expired/already-used reset ...
