Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

completely remove a entry #321

Open
aquafun20 opened this issue Sep 19, 2019 · 1 comment
Open

completely remove a entry #321

aquafun20 opened this issue Sep 19, 2019 · 1 comment

Comments

@aquafun20
Copy link

mutation removeArticle { upsertBlog(id: 123, enabled: false) { id } }

This disabled my entry. But how can I completely remove my entry?

@narration-sd
Copy link
Contributor

narration-sd commented Sep 19, 2019

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants