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

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

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/05   »
일 월 화 수 목 금 토
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 31

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바