본문 바로가기

빨간색코딩

검색하기
빨간색코딩
프로필사진 빨간색소년

  • 분류 전체보기 (187)
    • Java (37)
    • C (10)
    • 디자인패턴 (5)
    • 알고리즘 (2)
    • Spring (22)
    • Web (22)
    • node.js (18)
    • python (3)
    • 빌드도구 (1)
    • Git (7)
    • network (17)
    • database (12)
    • R (7)
    • 빅데이터 (5)
    • Linux (9)
    • assembly (1)
    • 자격증 (6)
    • 일상 (3)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2026/04   »
일 월 화 수 목 금 토
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
Tags
  • html
  • redis
  • ajax
  • 네트워크
  • AWS
  • cache
  • VCS
  • libuv
  • javascript
  • spring
  • Heap
  • mybatis
  • socket
  • reactive
  • effective
  • Static
  • HTTP
  • Java
  • github
  • Lombok
  • network
  • Linux
  • git
  • r
  • nodejs
  • mongodb
  • Elk
  • 데이터통신
  • NoSQL
  • reactor
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록mongoose-auto-increment (1)

빨간색코딩

mongoose-auto-increment

참조문서 : https://www.npmjs.com/package/mongoose-auto-increment시퀀스 넘버키를 편하게 쓸 수 있다. npm install mongoose-auto-increment 를 다운로드받는다.1. 연결const connection = mongoose.connect(....) autoIncrement.initialize(connection); 으로 연결한다. mongoose.connect의 콜백에 autoIncrement.initialize()를 넣으면 Error: mongoose-auto-increment has not been initialized 가 떨어진다.2. 시퀀스넘버 설정const logger = new Schema({..}) logger.plugin(aut..

node.js 2017. 8. 4. 15:40
Prev 1 Next

Blog is powered by AXZ / Designed by Tistory

티스토리툴바