field

package
Version: v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GroupBy    = "groupBy"
	Boundaries = "boundaries"
	Default    = "default"
	Output     = "output"
)

$bucket fields

View Source
const (
	// GroupBy     = "groupBy" // Declared
	Buckets = "buckets"
	// Output      = "output" // Declared
	Granularity = "granularity"
)

$bucketAuto

View Source
const (
	LatencyStats = "latencyStats"
	StorageStats = "storageStats"
	Count        = "count"
)

$collStats

View Source
const (
	AllUsers        = "allUsers"
	IdleConnections = "idleConnections"
	IdleCursors     = "idleCursors"
	IdleSessions    = "idleSessions"
	LocalOps        = "localOps"
)

$currentOp

View Source
const (
	Near               = "near"
	DistanceField      = "distanceField"
	Spherical          = "spherical"
	MaxDistance        = "maxDistance"
	Query              = "query"
	DistanceMultiplier = "distanceMultiplier"
	IncludeLocs        = "includeLocs"
	UniqueDocs         = "uniqueDocs"
	MinDistance        = "minDistance"
	Key                = "key"
)

$geoNear

View Source
const (
	From                    = "from"
	StartWith               = "startWith"
	ConnectFromField        = "connectFromField"
	ConnectToField          = "connectToField"
	As                      = "as"
	MaxDepth                = "maxDepth"
	DepthField              = "depthField"
	RestrictSearchWithMatch = "restrictSearchWithMatch"
)

$graphLookup

View Source
const (
	// From         = "from" // Declared
	LocalField   = "localField"
	ForeignField = "foreignField"

	Let      = "let"
	Pipeline = "pipeline"
)

$lookup fields

View Source
const (
	Into = "into"
	On   = "on"
	// Let            = "let" // Declared
	WhenMatched    = "whenMatched"
	WhenNotMatched = "whenNotMatched"
)

$merge

View Source
const (
	Path                       = "path"
	IncludeArrayIndex          = "includeArrayIndex"
	PreserveNullAndEmptyArrays = "preserveNullAndEmptyArrays"
)

$unwind

View Source
const ID = "_id"

ID field is just simple variable to predefine "_id" field.

View Source
const (
	NewRoot = "newRoot"
)

$replaceRoot

View Source
const (
	Size = "size"
)

$sample

Variables

View Source
var (
	// EmptyDoc is empty document.
	EmptyDoc = bson.M{}

	// AllUsersDoc is document that contains "allUsers":true value.
	AllUsersDoc = bson.M{AllUsers: true}
)
View Source
var Empty = bson.M{}

Empty is predefined empty map.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL