any word on when $expand support might be coming?

Topics: ASP.NET Web API
Oct 9, 2012 at 8:05 AM

Hi,

I'm simply curious when the expand functionality might see the light or should I just start implementing it myself?

Thanks.

Coordinator
Oct 9, 2012 at 3:19 PM
Edited Oct 9, 2012 at 8:15 PM

Most likely we won't get to $expand until next year.

Daniel Roth

Oct 9, 2012 at 7:51 PM
danroth27 wrote:

Most likely we want get to $expect until next year.

Daniel Roth

How about support for returning already expanded object, for example i need something like this:

return repository.Product.Include("Category");

Is there support for returning inline Category data together with a Product?

Thanks.

Coordinator
Oct 9, 2012 at 8:15 PM

Yikes! Sorry about my typos. Corrected above. That should have read:

Most likely we won't get to $expand until next year.

Daniel Roth

Oct 27, 2012 at 4:03 PM

$expand and $select are available in breeze.js today

Jan 22, 2013 at 3:18 PM

What's the current roadmap look like for this? Alternatively, any broad suggestions about how it might be implemented?

Coordinator
Jan 22, 2013 at 6:41 PM

No specific timeframe yet, but it most likely won't show up for at least a couple of months.

Daniel Roth

May 8, 2013 at 6:00 PM
$expand is already supported by the current version???
May 8, 2013 at 6:08 PM
Yes. $select and $expand support is available in the nightly builds. Instructions on using our nightly builds are here - http://blogs.msdn.com/b/henrikn/archive/2012/06/01/using-nightly-asp-net-web-stack-nuget-packages-with-vs-2012-rc.aspx
May 8, 2013 at 6:16 PM
Thanks a lot
May 8, 2013 at 7:19 PM
Edited May 8, 2013 at 7:22 PM
Other problem :). Apparently not support inlinecount with Expanded

/api/companies?$expand=Emails&$inlinecount=allpages

Error
Only a top-level feed can have the 'ODataFeed.Count' property value specified. Expanded links do not support inline counts.
In my case I have the entity Company with a list of phone numbers, addresses and emails.

In query need to load companies with phones and emails to display in a paged table (20 items per page).
public class Company : Entidade
{
    public string Name{ get; set; }
    public virtual Pessoa Contact { get; set; }

    public virtual ICollection<Phone> Phones { get; set; }
    public virtual ICollection<Address> Addresses { get; set; }
    public virtual ICollection<Email> Emails { get; set; }
}
May 8, 2013 at 9:42 PM
Thanks for reporting this. This is a bug. I have opened this issue to track it https://aspnetwebstack.codeplex.com/workitem/1037