Im trying to update the rows in a table and im getting an error. This is the code, the error and the structure of my table in appwrite.
this is the type of the item
since this is a function which gets an object as an argument and changes the completed attribute
why are you upserting and not using updateRow()?
thats what i saw in the docs
what docs and do you understand the difference?
seems like i dont
sorry, im new to appwrite and databases in general
i changed it to updateRow and it still doesnt work
upsert updates a row if it exists, otherwise it inserts it
thanks
does this row exist already in the DB? Does the user have access to it?
yes it exists
hmm the docs should include update row too
now the the console logs the row
and its with its new completed value
thanks guys its working now, what am i supposed to do in the .then function?
if i dont want to log anything
then don't have console.log()
you might want to learn a bit about promises so you understand what then does.
Recommended threads
- Appwrite console is too heavy
The Appwrite console is too heavy And all of my services broken Any support , please
- Usage of the new Client() and dealing wi...
Hey guys, just a quick one - we had some web traffic the other day and it ended up bombing out - To put in perspective of how the app works, we have a Nuxt Ap...
- Increase by operators
I see appwrite have bunch of useful operators for querieng db. One more I would like to suggest is operators like increase the count of a int columns by 1,2.. ...