Categorygithub.com/pienaahj/mongoconnect/v3
modulepackage
3.0.0
Repository: https://github.com/pienaahj/mongoconnect.git
Documentation: pkg.go.dev

# Functions

AllItems retrieves all items in a collection.
CheckConnection checks server connectivity using the Ping method Calling Connect does not block for server discovery.
CreateEntries adds records(docs) to the database(dbs) into Collection(collection) returns the id's created and possible error.
CreateEntry adds a record(doc) to the database(dbs) into Collection(collection).
FingManyItems retrieves more than one items in a collection with filter in the form of bson.D, bson.M, bson.A.
RemoveMany deletes multiple record from a collection filter is in the form bson.D, bson.M, bson.A.
RemoveOne deletes a record from a collection.
SingleItem returns a single item from the database For methods that return a single item, a SingleResult, which works like a *sql.Row: filter := bson.D{{"name", "pi"}}.

# Variables

declare variables.
declare variables.
declare variables.

# Interfaces

create an interface for abstracting document creation.
create an interaction interface for abstraction.