typed

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter bson.M

func NewFilter added in v0.0.3

func NewFilter() Filter

func TypedFilter

func TypedFilter(raw bson.M) Filter

func (Filter) Eq

func (f Filter) Eq(field string, value interface{}) Filter

func (Filter) In

func (f Filter) In(field string, value []interface{}) Filter

func (Filter) Nin

func (f Filter) Nin(field string, value []interface{}) Filter

func (Filter) Or

func (f Filter) Or(conditions bson.A) Filter

type FindOneAndUpdate

type FindOneAndUpdate struct {
	Filter Filter
	Update Update
}

type Update

type Update bson.M

func (Update) Set

func (u Update) Set(update bson.M) Update

func (Update) SetOnInsert

func (u Update) SetOnInsert(update bson.M) Update

type UpdateById

type UpdateById struct {
	Id     primitive.ObjectID
	Update Update
}

type UpdateMany

type UpdateMany struct {
	Filter Filter
	Update Update
}

Jump to

Keyboard shortcuts

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