I'm working on a web application built using SpringBoot as backend and MongoDB as DBMS. I'm showing all the latest posts in a web page. In the PostRepository.kt
I have an aggregation written in a MyRepository.kt file which is being called from MongoDataRetriever.kt file in the backend. MyRepository.kt file: import org.s