Firestore/src/Query.php
private function finalQueryPrepare(array $query)
    {
        if (isset($query['where']['compositeFilter']) && count($query['where']['compositeFilter']['filters']) === 1) {
            $filter = $query['where']['compositeFilter']['filters'][0];
            $query['where'] = $filter;
        }

        return $query;
    }
private function finalQueryPrepare(array $query)
    {
        if (isset($query['where']['compositeFilter']) && count($query['where']['compositeFilter']['filters']) === 1) {
            $filter = $query['where']['compositeFilter']['filters'][0];
            $query['where'] = $filter;
        }

        return $query;
    }
private function finalQueryPrepare ( array $ query ) { if ( isset ( $ query [ 'where' ] [ 'compositeFilter' ] ) && count ( $ query [ 'where' ] [ 'compositeFilter' ] [ 'filters' ] ) === 1 ) { $ filter = $ query [ 'where' ] [ 'compositeFilter' ] [ 'filters' ] [ 0 ] ; $ query [ 'where' ] = $ filter ; } return $ query ; }
Clean up the query array before sending.

Some optimizations cannot be performed ahead of time and must be done
at execution.

@param array $query The incoming query
@return array The final query data
Clean up the query array before sending .