Find all embedded documents from manual reference in mongoDB
问题 I use mongodb and spring-boot in a project. I used manual reference to point out a collection, My structure is like follwing. Reel collection { _id : "reel_id_1", name: "reel 1", category :[ { _id : "category_id_1", name: "category 1", videos: ["video_id_1","video_id_2"] } ] } Video collection { _id: "video_id_1", // first document name: "mongo" } { _id: "video_id_2", // seconddocument name: "java" } Java classes are @Document @Data public class Reel { @Id private ObjectId _id; private String