I do have a simple MongoRepository
and its entities do have a List<String> tags
attribute. Is there a way to add a findBy
method to the repository? Something like
List<...> findByInTags(@Param("tag") String tag);
So all entities containing the given string tag
in there list tags
will be returned.
I tried to solve it with a RestController
and a custom findByTag
endpoint. But I would like to use HATEOAS for the result format.