Initialize InternshipsRepository
The injected InternshipModel model
The collection name, used also as controller route name
The injected InternshipModel model
The mongoose model for this repository
Create a new [[Internship]] initialized with the NotApproved status
The internship to create
Delete an existing element
The element identifier
Return all elements matching the specified query
Return a the first element matching the specified query
The query. If not specified return the first collection element
Return the item with specified id if exists, null otherwise.
The item identifier (id property of [[BaseEntity]])
Return all the Approved internships
Return the list of all internships inserted by companies in which owners contain the given ownerId
The company owner id
Return all the NotApproved internships
Update only the specified property of the item
The item to update
Create or update an element
Generated using TypeDoc
The [[Internship]] repository