Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 스크럼
- RDF
- Python
- express
- scrum
- 개발자
- 특징
- socket.io
- 노드js
- Stream
- 이벤트 루프
- nodejs
- Router
- Knowledge Graph
- 소켓
- node.js
- 파헤쳐보자
- 자바
- 노드
- benchmark
- 예제
- node
- ngrinder
- Django
- Groovy
- 지식 그래프
- java
- 스크럼 마스터
- C++
- 스레드
Archives
- Today
- Total
반응형
목록Node.js/mongoose (1)
반응형
라봉이의 개발 블로그
[mongoose] Query 옵션: new
다음과 같이 find종류인 findOneAndUpdate, findByIdAndUpdate 쿼리를 이용하여 컬렉션에 존재하는 스키마의 데이터를 업데이트 하는 일이 주어졌다고 하자. 다음은 스키마 정의 부분이다. const userSchema = new mongoClient.Schema({ name: { type: String, required: true, unique: true }, category: { team: Number, categoryType: String }, gender: { type: String, enum: ["male", "female"], required: true }, createOn: Date }); 다음은 name이 kkki인 원래의 document이다. { category: {..
Node.js/mongoose
2018. 7. 30. 17:05