[GH-ISSUE #3] Error found. #2

Closed
opened 2026-02-26 21:30:37 +03:00 by kerem · 2 comments
Owner

Originally created by @FluffPawz on GitHub (Dec 5, 2023).
Original GitHub issue: https://github.com/RaddyTheBrand/25.NodeJs-Express-EJS-MongoDB--Blog/issues/3

github.com/RaddyTheBrand/25.NodeJs-Express-EJS-MongoDB--Blog@7c5810089e/server/routes/main.js (L26)

Hello, I am new to coding but, I was following along on a tutorial and found an issue.

Where there is a depreciation countDocuments is suggested, in the written repository it is missing Post in front of it.

const count = await Post.countDocuments({ });

My code did not work until I fixed this.

Originally created by @FluffPawz on GitHub (Dec 5, 2023). Original GitHub issue: https://github.com/RaddyTheBrand/25.NodeJs-Express-EJS-MongoDB--Blog/issues/3 https://github.com/RaddyTheBrand/25.NodeJs-Express-EJS-MongoDB--Blog/blob/7c5810089e1f1779cb63bf8df5f6df4398326e12/server/routes/main.js#L26 Hello, I am new to coding but, I was following along on a tutorial and found an issue. Where there is a depreciation **_countDocuments_** is suggested, in the written repository it is missing **_Post_** in front of it. const count = await Post.countDocuments({ }); My code did not work until I fixed this.
kerem closed this issue 2026-02-26 21:30:38 +03:00
Author
Owner

@RaddyTheBrand commented on GitHub (Dec 6, 2023):

Thank you!

<!-- gh-comment-id:1842644234 --> @RaddyTheBrand commented on GitHub (Dec 6, 2023): Thank you!
Author
Owner

@FluffPawz commented on GitHub (Dec 6, 2023):

Your tutorials are awesome, I appreciate you!

<!-- gh-comment-id:1843846155 --> @FluffPawz commented on GitHub (Dec 6, 2023): Your tutorials are awesome, I appreciate you!
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/25.NodeJs-Express-EJS-MongoDB--Blog#2
No description provided.