# Select Decorator

Module
import { Select } from "@tsed/mongoose"
Source/packages/mongoose/src/decorators/select.ts

# Overview

function Select(select?: boolean | any): Function;

# Description

Tell Mongoose to set default select() behavior for this path.

# Example

@Model()
export class EventModel {
  @Select()
  field: string;
}
1
2
3
4
5