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
- Weird permission failure
when creating an account I use following methods: ``` Future<void> register(String email, String password, String username) async { final user = await accoun...
- Relation Question
How do I create a relation from table y to an others x.$id. in my example I have a users table where I use Appwrites unique User IDs and I want other tables fo...
- Unknown attribute type: varchar / text
Since the `string` type is deprecated I tried using `varchar` and `text` in some newer tables, but when running `appwrite pull tables && appwrite types ./src/li...