projections

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Include = 1
	Exclude = -1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ProjectionOptions

type ProjectionOptions struct {
	// contains filtered or unexported fields
}

func ExcludeId

func ExcludeId() *ProjectionOptions

func Includes

func Includes(fields ...string) *ProjectionOptions

func New

func New() *ProjectionOptions

func (*ProjectionOptions) ExcludeId

func (p *ProjectionOptions) ExcludeId() *ProjectionOptions

func (*ProjectionOptions) Includes

func (p *ProjectionOptions) Includes(fields ...string) *ProjectionOptions

func (*ProjectionOptions) Marshal

func (p *ProjectionOptions) Marshal() bson.D

Jump to

Keyboard shortcuts

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