Tutorial 11 - Using Mutations to Delete an Item
Introduction
What is Soft Deletion?
query seeDeletedRecords {
records(
per_page: 20,
filter: {
deleted_at: {
exists: true
}
},
sort: {
deleted_at: {
order: ASC
}
}
) {
results {
id
deleted_at
}
}
}Recovering Soft Deleted Records
Deleting a Record

Step 1) Find the ID of the Record you wish to Delete
Step 2) Add the mutation keyword and a name
Step 3) Add the records_delete mutation type
Step 4) Add the id of the record you wish to delete, with a variable if you like
Step 5) Add a result to confirm the mutation's success
Summary and Further Learning
Next Time
PreviousTutorial 10 - Using Mutations to Edit a RecordNextTutorial 12 - Related Records and Datasources
Last updated
Was this helpful?

