func (d *DGraphAccess) Commit() error {
	if err := d.CheckState(); err != nil {
		return err
	}
	t, c := d.txn, d.ctx
	d.ctx = nil
	d.txn = nil
	return t.Commit(c)
}
// Commit completes the current transaction.
// Return an error if the DGraphAccess is in the wrong state or if the Commit fails.
// Requires a DGraphAccess with a Write transaction.
Commit completes the current transaction.
Return an error if the DGraphAccess is in the wrong state or if the Commit fails.
Requires a DGraphAccess with a Write transaction.
// Commit completes the current transaction . // Return an error if the DGraphAccess is in the wrong state or if the Commit fails . // Requires a DGraphAccess with a Write transaction .
func (d *DGraphAccess) Commit() error {
	if err := d.CheckState(); err != nil {
		return err
	}
	t, c := d.txn, d.ctx
	d.ctx = nil
	d.txn = nil
	return t.Commit(c)
}
func ( d * DGraphAccess ) Commit ( ) error { if err := d . CheckState ( ) ; err != nil { return err } t , c := d . txn , d . ctx d . ctx = nil d . txn = nil return t . Commit ( c ) }
Commit completes the current transaction.
Commit completes the current transaction .