You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I went through your course on educative.io. I saw how you created the mongo repository and loaded data into the Mongo instance.
However, I wanted to know :
how the interface worked without an actual implementation?
How can I create the other Create, update and delete endpoints?
The text was updated successfully, but these errors were encountered:
The interface doesn't need an implementation because it uses Spring Data JPA's Query Methods. In short, this means the name of the method is translated to a query by Spring.
The ReactiveSortingRepository that the code uses extends the ReactiveCrudRepository interface. This one has methods to create, update, and delete entities. You can check the docs here.
If you want to know more about Spring Data and how it integrates with Spring Boot in a microservices architecture, let me recommend you my book Learn Microservices with Spring Boot.
In any case, feel free to ask as many questions as you need 😄
Hi, I went through your course on educative.io. I saw how you created the mongo repository and loaded data into the Mongo instance.
However, I wanted to know :
The text was updated successfully, but these errors were encountered: