func (d *DGraphAccess) Discard() error {
	if d.txn != nil && d.ctx != nil {
		err := d.txn.Discard(d.ctx)
		d.txn = nil
		d.ctx = nil
		return err
	}
	return nil
}
// Discard aborts the current transaction (unless absent).
Discard aborts the current transaction (unless absent).
// Discard aborts the current transaction ( unless absent ) .
func (d *DGraphAccess) Discard() error {
	if d.txn != nil && d.ctx != nil {
		err := d.txn.Discard(d.ctx)
		d.txn = nil
		d.ctx = nil
		return err
	}
	return nil
}
func ( d * DGraphAccess ) Discard ( ) error { if d . txn != nil && d . ctx != nil { err := d . txn . Discard ( d . ctx ) d . txn = nil d . ctx = nil return err } return nil }
Discard aborts the current transaction (unless absent).
Discard aborts the current transaction ( unless absent ) .