Spring Data Mongo: How to return nested object by its field?
<p>I have domain:</p>

<pre><code>class Company {
    List&lt;Job&gt; jobs;
}
</code></pre>

<p>Is there a way to return nested object from collection like:</p>

<pre><code>@Repository
public interface CompanyRepository extends MongoRepository&lt;Company, String&gt;{
    Job findByJobId(String jobId);
}
</code></pre>