How to load grandchildren of related child objects

Hi all,

I have a data object with a relation.

public class SampleA
{
  private String name;
  private String objectId;
  private SampleB sampleB;
...
}
public class SampleB
{
  private String name;
  private String objectId;
...
}
  
public class SampleC
{
  private String name;
  private String objectId;
  private java.util.List<SampleB> sampleBs;
...
}

I got it with this query from SampleB.

SampleC[sampleBs].name = 'xxx'

But we can not get it from SampleA with this query.

smpleB.SampleC[sampleBs].name = 'xxx'

Nothing works? Any Idea?

Thanks

Hi Kunito,

We do not support search by nested parent objects yet, you can only use square brackets for the first-level ones.