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
Click to show internal directories.
Click to hide internal directories.