controller

package
v0.0.0-...-5be7bc9 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create[D any](document base.IBaseDocument) *D

func CreateAndSerialize

func CreateAndSerialize[D any, S any](document base.IBaseDocument) *S

func DeleteMany

func DeleteMany[D any](filter any, opts ...*options.DeleteOptions) (*int64, error)

func Find

func Find[D any](filters any, opts ...*options.FindOptions) []D

func FindAll

func FindAll[D any](opts ...*options.FindOptions) []D

func FindAllAndSerialize

func FindAllAndSerialize[D any, S any](opts ...*options.FindOptions) []S

func FindAndSerialize

func FindAndSerialize[D any, S any](filters any, opts ...*options.FindOptions) []S

func FindOne

func FindOne[D any](filters any, opts ...*options.FindOneOptions) *D

func FindOneAndSerialize

func FindOneAndSerialize[D any, S any](filters any, opts ...*options.FindOneOptions) *S

func Get

func Get[D any](id primitive.ObjectID) *D

func Remove

func Remove[D any](document base.IBaseDocument) *D

func RemoveByID

func RemoveByID[D any](id primitive.ObjectID) bool

func Update

func Update[D any](document base.IBaseDocument, update any, opts ...*options.UpdateOptions) (*D, error)

func UpdateMany

func UpdateMany[D any](filter any, update any, opts ...*options.UpdateOptions) (*mongo.UpdateResult, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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