Getting started with G.apex
Default Value
We can specify the default values in G.apex query.
{
"query": {
"book": {
"@id": "2",
"name": "",
"author": {
"name": "Unknown author"
}
}
}
}
Here if the author of the book is not found, Unknown author
will be returned as the default value.