impl

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDocument

func GetDocument(
	context echo.Context, findOneResult *mongo.SingleResult, element any,
	logger ...*slog.Logger,
) (bool, error)

GetDocument gets the only document from a FindOne result.

func GetDocuments

func GetDocuments[T any](
	context echo.Context, cursor *mongo.Cursor, elements *[]T,
	logger ...*slog.Logger,
) (bool, error)

GetDocuments gets the documents from a Find result.

Types

This section is empty.

Jump to

Keyboard shortcuts

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