-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: V4.01_CSD02
-
Fix Version/s: V4.01_CSD02
-
Component/s: JSON Format, Protocol, URL Conventions
-
Labels:None
-
Environment:
Applied
-
Proposal:
-
Resolution:
Since we added the support to use /$each with actions, we have to define what the result looks like. It seems reasonable that the result is an array of action results. What, then, is the shape of the result if the action returns a collection? In order to be annotated with things like count and next link, the result would have to be a collection of value arrays, as in:
{"value":[{"value":[
,
{a=2,b=3}]},{"value":[
{a=4,b=5}]}]}.
Once we have defined the result of /$each for actions that return results, it seems natural that we support /$each with functions as well.