Dark Mode

Update data in your tables using Astra's GraphQL API.

After creating a table in your keyspace and adding rows, you can update data.

Running an update mutation in Astra is an upsert. This means that if the row you are altering doesn't exist it will be created.

Prerequisites

Using the column that we added earlier, the data for a book is updated with the ISBN value. If the call is successful, a message returns with the newly inserted row data:

It is also possible to update other types of data, such as a set: