helpers

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BSONToMap

func BSONToMap(data bson.M) map[string]any

func IsValidObjectID

func IsValidObjectID(id string) bool

func MergeBSON

func MergeBSON(docs ...bson.M) bson.M

func NewObjectID

func NewObjectID() primitive.ObjectID

func ToBSON

func ToBSON(data map[string]any) bson.M

func ToBSONArray

func ToBSONArray(data []map[string]any) []bson.M

func ToObjectID

func ToObjectID(id string) (primitive.ObjectID, error)

func ToObjectIDs

func ToObjectIDs(ids []string) ([]primitive.ObjectID, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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