(MongoDB) MongoDB 의 시스템 변수(System Variables)

System Variables

MongoDB offers the following system variables:
VariableDescription
ROOT
References the root document, i.e. the top-level document, currently being processed in the aggregation pipeline stage.
CURRENT
References the start of the field path being processed in the aggregation pipeline stage. Unless documented otherwise, all stages start with CURRENT the same as ROOT.
CURRENT is modifiable. However, since $<field> is equivalent to $$CURRENT.<field>, rebinding CURRENT changes the meaning of $ accesses.
DESCEND
One of the allowed results of a $redact expression.
PRUNE
One of the allowed results of a $redact expression.
KEEP
One of the allowed results of a $redact expression.

댓글

이 블로그의 인기 게시물

(Garbage Collection) Old Area의 Concurrent Mark-sweep 알고리즘

(Pytorch) DataLoder 클래스

(데이터베이스) HAVING절과 WHERE 절의 차이