Here is a link that basically explains different methods of querying a database from a Spring Boot application. The last example ("Dynamic Queries Using Specifications") is very much like TypeORM I used in a NestJS application.
How Spring JPA Works and Writing Custom Queries