I'm trying to update a trashed model, without having to restore it first.
Schema
extend type Mutation {
updateAuthor(id: ID!, input: AuthorInput @spread, trashed: Trashed @trashed): Author @update @softDeletes
}
Mutation
mutation{
updateAuthor(id: 1, trashed: WITH, input:{
name: "William"
}){
id
name
}
}
Response
"No query results for model [App\\Author] 1"
This works fine if the Author 1 isn't softdeleted of course.
I saw in the PR here that it was only implemented for @all @find and @paginate. So I'm guessing it should still be added to the @update directive?