func (d *DGraphAccess) CheckState() error {
	if d.client == nil {
		return ErrNoClient
	}
	if d.txn == nil {
		return ErrNoTransaction
	}
	if d.ctx == nil {
		return ErrNoContext
	}
	return nil
}
// CheckState verifies that the Access can be used for a transaction (write | read only)
CheckState verifies that the Access can be used for a transaction (write | read only)
// CheckState verifies that the Access can be used for a transaction ( write | read only )
func (d *DGraphAccess) CheckState() error {
	if d.client == nil {
		return ErrNoClient
	}
	if d.txn == nil {
		return ErrNoTransaction
	}
	if d.ctx == nil {
		return ErrNoContext
	}
	return nil
}
func ( d * DGraphAccess ) CheckState ( ) error { if d . client == nil { return ErrNoClient } if d . txn == nil { return ErrNoTransaction } if d . ctx == nil { return ErrNoContext } return nil }
CheckState verifies that the Access can be used for a transaction (write | read only)
CheckState verifies that the Access can be used for a transaction ( write | read only )