Autoquery Reference property

I’ve got this model:

public class Model1
    public override long Id { get; set; }
    public override string Description { get; set; }
    public Company Company { get; set; }
    public  long CompanyId { get; set; }
public class Company 
    public long Id { get; set; }

    public ulong RowVersion { get; set; }
    public string Name { get; set; }
    public string Surname{ get; set; }...

and I have a Autoquery request that return the table result.

If I run this query “Query?fields=id,companyid,company” I get all the object.

I want to run the call and return only a specific subset of data from the Reference object.
For example this

Is it supported?


No it’s not supported, you can’t change the query that LoadSelect<T> uses to load references, the least effort option would be to use a custom AutoQuery implementation where you’d set all child reference properties you didn’t want returned to null on the QueryResponse<T> DTO before returning it.