# Decorator ExcludeIndexes

Decorator mongoose property
Module
import { ExcludeIndexes } from "@tsed/mongoose"
Source/packages/mongoose/src/decorators/excludeIndexes.ts

# Overview

function ExcludeIndexes(excludeIndexes?: boolean): PropertyDecorator;

# Description

If true, Mongoose will skip gathering indexes on subpaths. Only allowed for subdocuments and subdocument arrays.

# Example

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

Other topics