Skip to content

Commit

Permalink
feat: Extend meta response with aggregation type (#394) Thanks to @py…
Browse files Browse the repository at this point in the history
  • Loading branch information
pyrooka authored Feb 17, 2020
1 parent 6777f32 commit 06eed0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/Cube.js-Backend/REST-API.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ Example response:
shortTitle:"Count",
aliasName:"users.count",
type:"number",
aggType:"count"
drillMembers:[
"Users.id",
"Users.city",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ class CubeToMetaTransformer {
cumulativeTotal: nameToMetric[1].cumulative || BaseMeasure.isCumulative(nameToMetric[1]),
cumulative: nameToMetric[1].cumulative || BaseMeasure.isCumulative(nameToMetric[1]),
type: 'number', // TODO
aggType: nameToMetric[1].type,
drillMembers: drillMembers && this.cubeEvaluator.evaluateReferences(cubeName, drillMembers, { originalSorting: true })
};
}
Expand Down

0 comments on commit 06eed0b

Please sign in to comment.