Get query expand all

var loads = await Sql_databaseService.GetLoads(new Query
{
Filter = $@"i => i.Id == " + Id,
Expand = "LoadFiles,Carrier.CarrierType,Carrier.CarrierAccountingPaymentTerms.CarrierPaymentTermOption," +
"Carrier.CarrierAccountingPaymentTerms.SystemCarrierAccountingTenantMapping," +
"Carrier.CarrierAccountingPaymentTerms.SystemCarrierAccountingTenantMapping.SystemTenantCompanyType," +
"Driver,Driver.Truck"
});

Is there a way to Expand all objects fully rather than having to list out the ones you want to Expand?

There is no such API, you have to manually add navigation properties you want to expand.

1 Like