diff --git a/src/QueryBuilder.php b/src/QueryBuilder.php index fb127f1..acb0c49 100644 --- a/src/QueryBuilder.php +++ b/src/QueryBuilder.php @@ -340,7 +340,7 @@ public function findPartitionValue(object $document, bool $toString = false) if ($this->isNested($this->partitionKey)) { # explode the key into its properties - $properties = explode("/", $this->partitionKey); + $properties = array_values(array_filter(explode("/", $this->partitionKey))); # return the property structure # formatted as a cosmos query string