projections

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Computed

func Computed[E expression.AnyExpression](fieldName string, expression E) fields

func ComputedSearchMeta

func ComputedSearchMeta(fieldName string) fields

func ElemMatch

func ElemMatch(fieldName string) fields

func ElemMatchWithFilter

func ElemMatchWithFilter(fieldName string, filter bsonx.Bson) fields

func ExcludeId

func ExcludeId() fields

func Include

func Include(fieldNames ...string) fields

func Meta

func Meta(fieldName string, metaFieldName string) fields

func MetaSearchHighlights

func MetaSearchHighlights(fieldName string) fields

func MetaSearchScore

func MetaSearchScore(fieldName string) fields

func MetaTextScore

func MetaTextScore(fieldName string) fields

func Slice

func Slice(fieldName string, limit int32) fields

func SliceWithSkip

func SliceWithSkip(fieldName string, limit, skip int32) fields

Types

type Projections

type Projections interface {
	Pro() *bsonx.BsonDocument
}

func Fields

func Fields(projections ...fields) Projections

Jump to

Keyboard shortcuts

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