Closed hylkevds closed 8 years ago
$count=true enables the count for the main entity type but not the expanded ones. If you want to enable count for expanded entity type you should use inline count query in the expand. For example, /Datastreams?$expand=Observations($count=true) enables the count for expanded Observations for each Datastream. In this case the count of expanded entity will be shown like Observations@iot.count=
When $count is specified, or enabled by default, should $expand-ed collections also get a count? In the returned json there is no place to put it. Or does it become something like Observations@iot.count ?
The same goes for the @iot.nextLink of expanded sub-collections.
btw, the count and nextLink propertynames are incorrect in http://www.sensorup.com/docs/#get83