func (iv IndexView) DropOne(ctx context.Context, name string, opts ...*options.DropIndexesOptions) (bson.Raw, error) {
	if name == "*" {
		return nil, ErrMultipleIndexDrop
	}

	return iv.drop(ctx, name, opts...)
}
// DropOne executes a dropIndexes operation to drop an index on the collection. If the operation succeeds, this returns
// a BSON document in the form {nIndexesWas: <int32>}. The "nIndexesWas" field in the response contains the number of
// indexes that existed prior to the drop.
//
// The name parameter should be the name of the index to drop. If the name is "*", ErrMultipleIndexDrop will be returned
// without running the command because doing so would drop all indexes.
//
// The opts parameter can be used to specify options for this operation (see the options.DropIndexesOptions
// documentation).
//
// For more information about the command, see https://docs.mongodb.com/manual/reference/command/dropIndexes/.
DropOne executes a dropIndexes operation to drop an index on the collection. If the operation succeeds, this returns
a BSON document in the form {nIndexesWas: }. The "nIndexesWas" field in the response contains the number of
indexes that existed prior to the drop.

The name parameter should be the name of the index to drop. If the name is "*", ErrMultipleIndexDrop will be returned
without running the command because doing so would drop all indexes.

The opts parameter can be used to specify options for this operation (see the options.DropIndexesOptions
documentation).


// DropOne executes a dropIndexes operation to drop an index on the collection . If the operation succeeds this returns // a BSON document in the form { nIndexesWas : <int32 > } . The " nIndexesWas " field in the response contains the number of // indexes that existed prior to the drop . // // The name parameter should be the name of the index to drop . If the name is " * " ErrMultipleIndexDrop will be returned // without running the command because doing so would drop all indexes . // // The opts parameter can be used to specify options for this operation ( see the options . DropIndexesOptions // documentation ) . // // For more information about the command see https : // docs . mongodb . com / manual / reference / command / dropIndexes / .
func (iv IndexView) DropOne(ctx context.Context, name string, opts ...*options.DropIndexesOptions) (bson.Raw, error) {
	if name == "*" {
		return nil, ErrMultipleIndexDrop
	}
	return iv.drop(ctx, name, opts...)
}
func ( iv IndexView ) DropOne ( ctx context . Context , name string , opts ... * options . DropIndexesOptions ) ( bson . Raw , error ) { if name == " " { return nil , ErrMultipleIndexDrop } return iv . drop ( ctx , name , opts ... ) }
DropOne executes a dropIndexes operation to drop an index on the collection.
DropOne executes a dropIndexes operation to drop an index on the collection .