Skip to content

[✍️ Dev Log] 정송이 / 2021-05-03 #63

@lovelysi0113

Description

@lovelysi0113

오늘은 어떻게 프로젝트에 기여했나요?

오늘의 프로젝트에서 힘든 점은 무엇인가요?

  • mongoDB에서 비교 연산자 쓰는 방법을 까먹어서 다시 공부했다
commentModel.deleteOne({
    $and: [
        { user_id }, 
        { id: comment_id }
    ]
});
  • deleteOne()findOneAndDelete()의 차이점을 다시 한번 정리하기
    • deleteOne() - 반환값으로 삭제된 개수(deletedCount) 등을 보내줌
    • findOneAndDelete() - 반환값으로 삭제된 데이터를 보내줌

내일은 프로젝트에 기여하기 위해 무엇을 해야 하나요?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions