IMeasureExpressionToken
Home > @gooddata/sdk-backend-spi > IMeasureExpressionToken
IMeasureExpressionToken type
Token representing part of parsed MAQL measure expression.
Signature:
export type IMeasureExpressionToken = IObjectExpressionToken | IAttributeElementExpressionToken | ITextExpressionToken | ICommentExpressionToken | IBracketExpressionToken;
References: IObjectExpressionToken, IAttributeElementExpressionToken, ITextExpressionToken, ICommentExpressionToken, IBracketExpressionToken
Example
// for example "SELECT [/gdc/md/projectId/obj/6273] WHERE [/gdc/md/projectId/obj/6307] = [/gdc/md/projectId/obj/6307/elements?id=5703453]"
// could be represented as
const expressionTokens = [
{
"type": "text",
"value": "SELECT "
},
{
"type": "measure",
"value": "Amount",
},
{
"type": "text",
"value": " WHERE "
},
{
"type": "attribute",
"value": "Status",
},
{
"type": "text",
"value": " = "
},
{
"type": "attributeElement",
"value": "Won",
}
]