Quantcast
Viewing latest article 47
Browse Latest Browse All 48

Answer by Sahil Patel for How to query MongoDB with "like"

If you want to use mongo JPA like query you should try this.

@Query("{ 'title' : { $regex: '^?0', $options: 'i' } }")List<TestDocument> findLikeTitle(String title);

Viewing latest article 47
Browse Latest Browse All 48

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>