Which fields to index (if multiple fields are set, it will be a compound index)
Optional
options: mongoose.IndexOptionsOptions to pass to MongoDB driver's createIndex() function
Optional
Example:
@index({ article: 1, user: 1 }, { unique: true })
class ClassName {}
Generated using TypeDoc
Defines a index for this Class which will then be added to the Schema.