Skip to content

Commit

Permalink
enablecrosspartition for queries
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuno Chaves authored Dec 11, 2018
1 parent 9224659 commit 3f2244c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/CosmosDb.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,10 @@ public function query($rid_id, $rid_col, $query)
$headers = $this->getAuthHeaders('POST', 'docs', $rid_col);
$headers['Content-Length'] = strlen($query);
$headers['Content-Type'] = 'application/query+json';
$headers['x-ms-max-item-count'] = -1;
$headers['x-ms-documentdb-isquery'] = True;
$headers['x-ms-max-item-count'] = -1;
$headers['x-ms-documentdb-isquery'] = 'True';
$headers['x-ms-documentdb-query-enablecrosspartition'] = 'True';

return $this->request("/dbs/" . $rid_id . "/colls/" . $rid_col . "/docs", "POST", $headers, $query);
}

Expand Down

0 comments on commit 3f2244c

Please sign in to comment.