Skip to content
Advertisement

How do I retrieve particular List of element from MongoDB Using findById from another List => SubList from MainList?

How To Retrieve this list:

JavaScript

When passing this list [id]:

JavaScript

Advertisement

Answer

I just figured out an answer for my question and it’s as follows:

In the mongo repository just declare a custom find method:

JavaScript

Then use it as a normal find method => [query] in your business logic layer and controller layer.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement