Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- db.getCollection('cvs_500').aggregate([
- { $project : {
- _id : 0 ,
- candidates : 1 ,
- }},
- { $unwind:{path:"$candidates"}},
- { $replaceRoot: { newRoot: "$candidates" } },
- {$out: "candidates_flat"}
- ])
Add Comment
Please, Sign In to add comment