mongoose#PaginateModel TypeScript Examples

The following examples show how to use mongoose#PaginateModel. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: club.ts    From tams-club-cal with MIT License 5 votes vote down vote up
Club = mongoose.model<ClubDocument, PaginateModel<ClubDocument>>('Club', clubSchema, 'clubs')
Example #2
Source File: event.ts    From tams-club-cal with MIT License 5 votes vote down vote up
Event = mongoose.model<EventDocument, PaginateModel<EventDocument>>('Event', eventSchema, 'events')
Example #3
Source File: user.ts    From tams-club-cal with MIT License 5 votes vote down vote up
User = mongoose.model<UserDocument, PaginateModel<UserDocument>>('User', userSchema, 'users')
Example #4
Source File: volunteering.ts    From tams-club-cal with MIT License 5 votes vote down vote up
Volunteering = mongoose.model<VolunteeringDocument, PaginateModel<VolunteeringDocument>>(
    'Volunteering',
    volunteeringSchema,
    'volunteering'
)