Atomic Update
업데이트 대상 수를 먼저 선택하고 document 또는 aggregation pipeline update를 구성합니다.
업데이트 cardinality
first()
첫 번째 일치 문서만 update
multi()
모든 일치 문서를 update
upsertOne()
단일 문서 upsert. setOnInsert는 이 모드의 document builder에서만 노출됩니다.
Document update
java
document builder는 set, inc, unset, push, addToSet, pull을 제공합니다.
멱등 upsert
java
Pipeline update
java