kimchaeminthegreat / kimchaeminthegreat/Node.js_Level1_Task

findOne

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

https://github.com/kimchaeminthegreat/Node.js_Level1_Task/blob/79343d10af1054ad8adfbda8105731dcbdd555d0/routes/comments.js#L11

find 메서드를 사용할 경우, 결과가 여러개가 나올 지, 하나로 나올 지 부정확하기 때문에
코드를 읽는 사람이 쉽게 예상할 수 있도록 findOne을 쓰는게 좋겠습니다.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at routes/comments.js line 11 and confirm why a single result is expected. Change that lookup to findOne and verify that the comments route still behaves as intended.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
backend
Issue type
Refactor
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.