Created
April 21, 2017 10:52
-
-
Save mizvol/d23e0c7e4225187852b48727c51c3514 to your computer and use it in GitHub Desktop.
This file contains hidden or 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.allPosts.aggregate([ | |
{$group: {_id: "$user.id"}}, | |
{$out: "users"} | |
]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment