I am using Microsoft WebAPI OData nightly that supports $expand and breeze 1.3.5 to query the data
When I use breeze to query the entity: via breeze.EntityQuery.from("Incidents").where("IncidentID", "eq", 1).expand("IncidentComments");
the call on the wire is GET /odata/Incidents?$filter=IncidentID%20eq%201&$expand=IncidentComments
The result is correctly returned from the server with the collection of IncidentComments but when I view the entity retuned from the query I get the entity correctly but without the NavigtaionProperty (IncidentComments), when I look at the metadataStore on the Incident entity I can't see any nvigationProperties only dataProperties in the metadata
When I look at the odata metadata ($metadata) returned from the server I can see the navigation properties are there:
<EntityType Name="Incident">
<Key>
<PropertyRef Name="IncidentID" />
</Key>
<Property Name="IncidentID" Type="Edm.Int32" Nullable="false" />
<Property Name="IncidentType" Type="Edm.Int32" Nullable="false" />
<Property Name="Name" Type="Edm.String" />
<NavigationProperty Name="IncidentComments" Relationship="Stabilis.Situator.OpServerTypes.Stabilis_Situator_OpServerTypes_Incident_IncidentComments_Stabilis_Situator_OpServerTypes_IncidentComment_IncidentCommentsPartner" ToRole="IncidentComments" FromRole="IncidentCommentsPartner" />
is there something wrong with the metadata returned from the webapi?