func (ci *CreateIndexes) Execute(ctx context.Context) error {
	if ci.deployment == nil {
		return errors.New("the CreateIndexes operation must have a Deployment set before Execute can be called")
	}

	return driver.Operation{
		CommandFn:         ci.command,
		ProcessResponseFn: ci.processResponse,
		Client:            ci.session,
		Clock:             ci.clock,
		CommandMonitor:    ci.monitor,
		Crypt:             ci.crypt,
		Database:          ci.database,
		Deployment:        ci.deployment,
		Selector:          ci.selector,
		WriteConcern:      ci.writeConcern,
	}.Execute(ctx, nil)

}
// Execute runs this operations and returns an error if the operaiton did not execute successfully.
Execute runs this operations and returns an error if the operaiton did not execute successfully.
// Execute runs this operations and returns an error if the operaiton did not execute successfully .
func (ci *CreateIndexes) Execute(ctx context.Context) error {
	if ci.deployment == nil {
		return errors.New("the CreateIndexes operation must have a Deployment set before Execute can be called")
	}
	return driver.Operation{
		CommandFn:         ci.command,
		ProcessResponseFn: ci.processResponse,
		Client:            ci.session,
		Clock:             ci.clock,
		CommandMonitor:    ci.monitor,
		Crypt:             ci.crypt,
		Database:          ci.database,
		Deployment:        ci.deployment,
		Selector:          ci.selector,
		WriteConcern:      ci.writeConcern,
	}.Execute(ctx, nil)
}
func ( ci * CreateIndexes ) Execute ( ctx context . Context ) error { if ci . deployment == nil { return errors . New ( " " ) } return driver . Operation { CommandFn : ci . command , ProcessResponseFn : ci . processResponse , Client : ci . session , Clock : ci . clock , CommandMonitor : ci . monitor , Crypt : ci . crypt , Database : ci . database , Deployment : ci . deployment , Selector : ci . selector , WriteConcern : ci . writeConcern , } . Execute ( ctx , nil ) }
Execute runs this operations and returns an error if the operaiton did not execute successfully.
Execute runs this operations and returns an error if the operaiton did not execute successfully .