CRUD operations on Array objects nested within an Object in MongoDB Spring Boot
问题 I have a MongoDB object which was created using a Map<String, List>. I'm trying to add CRUD methods to EDIT and DELETE objects from the arrays within the object. This is how the JSON structure looks like: [ { "id": "1", "courses": { "Spring": [ { "subject": "Electrical Engineering", . . . "id": "123" } ], "Fall": [ { "subject": "Electrical Engineering", . . . "id": "456" }, { "subject": "Computer Science", . . . "id": "789" } ] } } ] I was trying to use pull() method to remove the object but