Aborting a transaction

Is there a way to programmatically abort a transaction?
Maybe a built in api to be called within a lambda?..

As far as I know, Dgraph’s GraphQL feature hasn’t a transaction mechanism. You can use lambda, but not sure how that would work. Aborts happens at transaction level(before commit), so you have to build a logic for programmatic aborts.