func (d *DGraphAccess) Transaction() *dgo.Txn {
	if d.txn == nil {
		return nil
	}
	if nonMock, ok := d.txn.(*dgo.Txn); ok {
		return nonMock
	}
	return nil
}
// Transaction returns the encapsulated transaction (if present).
Transaction returns the encapsulated transaction (if present).
// Transaction returns the encapsulated transaction ( if present ) .
func (d *DGraphAccess) Transaction() *dgo.Txn {
	if d.txn == nil {
		return nil
	}
	if nonMock, ok := d.txn.(*dgo.Txn); ok {
		return nonMock
	}
	return nil
}
func ( d * DGraphAccess ) Transaction ( ) * dgo . Txn { if d . txn == nil { return nil } if nonMock , ok := d . txn . ( * dgo . Txn ) ; ok { return nonMock } return nil }
Transaction returns the encapsulated transaction (if present).
Transaction returns the encapsulated transaction ( if present ) .