field

package
v3.4.3 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Point              = "Point"
	LineString         = "LineString"
	Polygon            = "Polygon"
	MultiPoint         = "MultiPoint"
	MultiLineString    = "MultiLineString"
	MultiPolygon       = "MultiPolygon"
	GeometryCollection = "GeometryCollection"
)

JeoJSON reference: https://docs.mongodb.com/manual/reference/geojson/

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 constant for referencing the "_id" field name.

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 a 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
y or Y : Canonical URL