Getting started with G.apex
Variables
Simple variables are supported in G.apex query.
{
"query": {
"book": {
"@id": "2",
"$var": ""
}
},
"$var": "name"
}
We define a variable $var
at the root of the query, and anywhere else it is used, it will be replace by the value name. Variables are defined by prepending $
.