Options
All
  • Public
  • Public/Protected
  • All
Menu

Class InternshipsRepository

The [[Internship]] repository

Hierarchy

Index

Constructors

constructor

Properties

collectionName

collectionName: string

The collection name, used also as controller route name

Protected internshipsModel

internshipsModel: Model<IInternship>

The injected InternshipModel model

Protected model

model: Model<IInternship>

The mongoose model for this repository

Methods

create

delete

  • delete(id: string): Promise<boolean>

find

findOne

get

getApproved

getByCompanyOwnerId

  • getByCompanyOwnerId(id: string): Promise<IInternship[]>

getNotApproved

partialUpdate

  • partialUpdate(id: string, item: Partial<Internship>): Promise<IInternship>

update

Generated using TypeDoc