Use Directives
{
"query": {
"book": {
"#include": {
"if": "$showBook"
},
"@id": "2",
"name": ""
}
},
"$showBook": "false"
}
We use the directives by prepending #
.
The available directives are:
Name | Description |
---|---|
include | used with param 'if' to control if the object type is included |
skip | used with param 'if' to control if the object type is skipped |