I am using WebAPI 2.2 with OData V4.
Can be used $filter=RelatedObj/PropertyName eq 'Some Value'to filter the list of objects based on the property value of the associated object.
However, when I try to use the same syntax with $select:
$select=Id,Name,RelatedObj/PropertyName
results in an exception:
"message": "The query specified in the URI is not valid. Found a path with multiple navigation properties or a bad complex property path in a select clause. Please reword your query such that each level of select or expand only contains either TypeSegments or Properties.",
"innererror": {
"message": "Found a path with multiple navigation properties or a bad complex property path in a select clause. Please reword your query such that each level of select or expand only contains either TypeSegments or Properties.",
"type": "Microsoft.OData.Core.ODataException",
Can this be solved?
source
share