Last active
March 16, 2021 13:35
-
-
Save mumunuu/785ffe9367f529bf34feb1fcfd0a075f to your computer and use it in GitHub Desktop.
mongodb-pagionation-1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db | |
.myCollection1 | |
.aggregate([ | |
{ | |
"$match": { | |
//이렇게 미리 match를 통해 myCollection1에서 가져올 부분을 명확히 함 | |
"status": true | |
} | |
}, | |
{ | |
"$lookup": { | |
... 생략 | |
} | |
} | |
]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment