집계 프레임워크 (Aggregate Framework)
Aggregate Framework 에 대한 간단한 설명이 첨부되어야 함.
개념
위에 이미지를 1. $match, 2. group stage 이런식으로 하는것도 좋을 거 같네요
Aggregation Framework
Syntax
Example
Aggregate with geoNear
아직 구현이 덜 된 건지 index를 활용을 못해서 그런지 몰라도 aggregation framework에서 공간 질의에 대해서는 아직 지원이 확실하진 않다.
GeoNear 질의는 일반 aggregate와 문법이 조금은 다르기 때문에 작성해 본다.
only use $geoNearas the first stage of a pipeline
Last updated
Was this helpful?