hi everyone, is it possible, if I delete an object...
# prisma-whats-new
r
hi everyone, is it possible, if I delete an object through a mutation, to still return the updated relations? Like when I destroy a like, to get the post it belonged to and get an updated likeCount
a
Yup! You should be able to do something like:
Copy code
mutation {
  deleteLike (criteriaForFindingLike) {
    post {
      _likesMeta {
        count
      }
    }
  }
}
a
I don't think you can get relation data back from a delete mutation... Have you tried this?
r
I tried something like that but I got null every time
a
Sure enough. You can't access a nested relationships information (even if it would still exist). That could be changed fairly easily though. I'd submit a request for that as it could be better than a new fetch.

https://i.imgur.com/JLsMx29.png

👍🏻 1
r
thanks for the help, this would indeed be a nice feature