Ama_gramer

  • 홈
  • 태그
  • 방명록

PainPoint 2

[PainPoint] Mongoose 스키마 타입 주의

💥 client 에서 POST후 발생한 에러- client 에서 정보를 POST하던 중 아래와 같은 오류가 발생했다.MongoServerError: E11000 duplicate key error collection: blog.users index: userID_1 dup key: { userID: null } at InsertOneOperation.execute (/Users/leeyunjae/programming/react/react_study/blogpractice/api/node_modules/mongodb/lib/operations/insert.js:51:19) at process.processTicksAndRejections (node:internal/process/task_que..

PainPoint 2024.10.21

[PainPoint] Date() 함수로 생성된 날짜 데이터 오류

💥 Date() 함수로 생성된 날짜 데이터 오류- Mongoose로 생성된 날짜를 Date에 넣어 생성된 데이터의 처리 과정중 문제가 발생했다.APi Area// Long piece of code...const PostSchema = new Schema({ title: String, summary: String, content: String, cover: String, author: String, createdAt: Date, updatedAt: Date,});PostSchema.pre('save', function (next) { const currentDate = new Date(); currentDate.setHours(currentDate.getHours() + 9); this..

PainPoint 2024.10.04
이전
1
다음
프로필사진

Ama_gramer

프로그래밍 공부 정리 및 Reference 수집 블로그

  • Study (34)
    • Algorithm (11)
    • Network (2)
    • codingLanguage (0)
    • frontEnd (5)
      • javaScript (4)
      • html (0)
      • nextjs (1)
    • why? (2)
    • 모던자바스크립트 Deep Dive (7)
    • PainPoint (2)
    • 기술면접 개념 정리 (5)

Tag

14651번, merging layout, 걷다보니 신천역 삼, 모던자바스크립트, JavaScript, 3107, 1 2 3 더하기 7, Modern, painpoint, es6, 백준, route groups, Nodejs, network, deep dive, Algorithm, 기술면저, 알고리즘, 15992번, 기술면접,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

  2025. 06  
일 월 화 수 목 금 토
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바

단축키

내 블로그

내 블로그 - 관리자 홈 전환
Q
Q
새 글 쓰기
W
W

블로그 게시글

글 수정 (권한 있는 경우)
E
E
댓글 영역으로 이동
C
C

모든 영역

이 페이지의 URL 복사
S
S
맨 위로 이동
T
T
티스토리 홈 이동
H
H
단축키 안내
Shift + /
⇧ + /

* 단축키는 한글/영문 대소문자로 이용 가능하며, 티스토리 기본 도메인에서만 동작합니다.