Skip to content

Support for options.CollectionOptions #280

@HjokXnx

Description

@HjokXnx

mongo-driver support options.CollectionOptions while qmgo(v1.1.5) not (support only for client and database)

mongo-driver create collection:

// Collection gets a handle for a collection with the given name configured with the given CollectionOptions.
func (db *Database) Collection(name string, opts ...*options.CollectionOptions) *Collection {
	return newCollection(db, name, opts...)
}

qmgo remove it:

// Collection gets collection from database
func (d *Database) Collection(name string) *Collection {
	var cp *mongo.Collection
	cp = d.database.Collection(name)

	return &Collection{
		collection: cp,
		registry:   d.registry,
	}
}

just like Support options in database operation

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions