Created
August 22, 2022 10:22
-
-
Save Elvincth/0e8735cde4c4751162ced23e8de0100e to your computer and use it in GitHub Desktop.
mongoose-paginate-v2 typescript usage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
schema.plugin(paginate); | |
export const CourseModel: PaginateModel<ICourse> = | |
(models.Course as PaginateModel<ICourse>) || | |
model<ICourse, PaginateModel<ICourse>>("Course", schema); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment