We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e11fdfd commit 55f2fccCopy full SHA for 55f2fcc
src/Support/Utility.php
@@ -205,8 +205,8 @@ public static function generateQuery($query = array())
205
$query->_query['environment'] = $query->contentType
206
->stack->getEnvironment();
207
$subQuery = array();
208
- if (isset($query->subQuery)) {
209
- $subQuery['query'] = $query->subQuery;
+ if (count($query->subQuery) > 0) {
+ $subQuery['query'] = json_encode($query->subQuery);
210
}
211
212
$include_schema = array_search(
0 commit comments