helper

package
v0.0.0-...-7e06a17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CollectionHelper

type CollectionHelper interface {
	// InsertOne inserts a document in Mongo Collection.
	InsertOne(context.Context, interface{}, ...*options.InsertOneOptions) (*mongo.InsertOneResult, error)
	// FindOne finds a document in Mongo Collection by a given filter.
	FindOne(context.Context, interface{}, ...*options.FindOneOptions) *mongo.SingleResult
}

CollectionHelper implements Mongo Collections interaction.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL