Moved from GitHub dgo/63
Posted by jostillmanns:
Prior to #39 txn.Discard()
aborted a transaction. Now the data is commited. Maybe I am misunderstanding the API but the behavior did change after #39 was merged. In particular, Added function to login with refresh token etc by gitlw · Pull Request #39 · dgraph-io/dgo · GitHub introduced the breaking change.