util

package
v0.0.435 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2026 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertQueryParams

func ConvertQueryParams(params QueryParams) (filter bson.D, sort bson.D, projection bson.D)

Types

type Filter

type Filter struct {
	Field     string
	Operation *string
	Value     []string
}

type Projection

type Projection struct {
	Field     string
	Inclusion bool
}

type QueryParams

type QueryParams struct {
	Start      int64
	Limit      int
	Sort       []Sort
	Filter     []Filter
	Projection []Projection
}

func GetQueryParams

func GetQueryParams(query string) QueryParams

type Sort

type Sort struct {
	Field string
	Order int
}

Jump to

Keyboard shortcuts

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