craftql
craftql copied to clipboard
completely remove a entry
mutation removeArticle { upsertBlog(id: 123, enabled: false) { id } }
This disabled my entry. But how can I completely remove my entry?
First instinct is that you may not want to do this from GraphQL or any data api, because Entries have complex relations to other tables.
You could have a look at calling through Ajax Craft's EntriesController::actionDeleteEntry() to manage this properly, with the id, site, etc.. that you're interested in, and consider also user identity to be permitted to take such action...