mongohelper

package
v1.0.47 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

TODO: This library is imported from ror, should determine if its a public library or not

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains[E comparable](s []E, v E) bool

func CreateAggregationPipeline

func CreateAggregationPipeline(filter *apicontracts.Filter, baseSort apicontracts.SortMetadata, unwindFields []string) []bson.M

func CreateClusterACLFilter

func CreateClusterACLFilter(acl aclmodels.AclV2ListItems) bson.M

func CreateFilterPipeline

func CreateFilterPipeline(filter *apicontracts.Filter, unwindFields []string) []bson.M

func CreatePaginationPipeline

func CreatePaginationPipeline(filter *apicontracts.Filter) []bson.M

func CreateSort

func CreateSort(filter *apicontracts.Filter, baseSort apicontracts.SortMetadata) []bson.M

func Index

func Index[E comparable](s []E, v E) int

func PrettyprintBSON

func PrettyprintBSON(pipeline []primitive.M)

Types

This section is empty.

Jump to

Keyboard shortcuts

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