Mongo

package
v0.0.0-...-d7fecdb Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MongoCmdAll         = "$all"
	MongoCmdSet         = "$set"
	MongoCmdInc         = "$inc"
	MongoCmdPush        = "$push"
	MongoCmdPull        = "$pull"
	MongoCmdMatch       = "$match"
	MongoCmdFilter      = "$filter"
	MongoCmdProject     = "$project"
	MongoCmdAddToSet    = "$addToSet"
	MongoCmdElemMatch   = "$elemMatch"
	MongoCmdSetOnInsert = "$setOnInsert"
)

Variables

This section is empty.

Functions

func GenDoc

func GenDoc(doc interface{}) (m bson.M, err error)

func ObjectIdFilter

func ObjectIdFilter(s string) (bson.M, error)

func UserDocFilter

func UserDocFilter(account, email string) bson.M

func UserDocFilterByAccount

func UserDocFilterByAccount(account string) bson.M

Types

This section is empty.

Jump to

Keyboard shortcuts

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