# Transaction should be discarded if a mutation fails

**URL:** https://discuss.dgraph.io/t/transaction-should-be-discarded-if-a-mutation-fails/7718
**Category:** Dgraph Clients
**Tags:** dgraph4j, kind:enhancement
**Created:** [November 22, 2017, 5:40am UTC](https://discuss.dgraph.io/t/transaction-should-be-discarded-if-a-mutation-fails/7718 "2017-11-22T05:40:29Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![diggy](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/diggy/32/3666_2.png) [@diggy](https://discuss.dgraph.io/u/diggy)
#### Post date: [November 22, 2017, 5:40am UTC](https://discuss.dgraph.io/t/transaction-should-be-discarded-if-a-mutation-fails/7718/1 "2017-11-22T05:40:29Z")

</div>

_Posted by_ [peterstace](https://github.com/peterstace):

Same feature as: [Discard transaction when a mutation fails by peterstace · Pull Request #1812 · dgraph-io/dgraph · GitHub](https://github.com/dgraph-io/dgraph/pull/1812)

---

<div class="post-metadata">

### Author: ![diggy](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/diggy/32/3666_2.png) [@diggy](https://discuss.dgraph.io/u/diggy)
#### Post date: [July 11, 2020, 1:37am UTC](https://discuss.dgraph.io/t/transaction-should-be-discarded-if-a-mutation-fails/7718/2 "2020-07-11T01:37:18Z")

</div>


