Rank 1: Thread
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.
Votes
0
Replies
20
Participants
Unknown
Messages
21
Rank 1: Thread
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.
Rank 1: Thread
this is the type of the item
Rank 1: Thread
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()?
Rank 1: Thread
thats what i saw in the docs
what docs and do you understand the difference?
Rank 1: Thread
Rank 1: Thread
seems like i dont
Rank 1: Thread
sorry, im new to appwrite and databases in general
Rank 1: Thread
i changed it to updateRow and it still doesnt work
upsert updates a row if it exists, otherwise it inserts it
Rank 1: Thread
thanks
does this row exist already in the DB? Does the user have access to it?
Rank 1: Thread
yes it exists
hmm the docs should include update row too
Rank 1: Thread
now the the console logs the row
Rank 1: Thread
and its with its new completed value
Rank 1: Thread
thanks guys its working now, what am i supposed to do in the .then function?
Rank 1: Thread
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.