mirror of
https://github.com/RaddyTheBrand/25.NodeJs-Express-EJS-MongoDB--Blog.git
synced 2026-04-25 06:35:57 +03:00
[GH-ISSUE #3] Error found. #2
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/25.NodeJs-Express-EJS-MongoDB--Blog#2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
@RaddyTheBrand commented on GitHub (Dec 6, 2023):
Thank you!
@FluffPawz commented on GitHub (Dec 6, 2023):
Your tutorials are awesome, I appreciate you!