title: Read documents from all Partition in a collection from CosmosDB
body: <p>Created a Collection in Cosmos DB with Email as partition key and added around ten documents to that collection.</p>
  
  <p><a href="https://i.stack.imgur.com/6cJcb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6cJcb.png" alt="enter image description here"></a></p>
  
  <p><br></p>
  
  <p>When I query the collection with <code>Partition Key</code> in <code>RequestOptions</code>, returns all the documents which has the supplied partition key.</p>
  
  <pre><code>var result = await documentRUClient.ExecuteStoredProcedureAsync&lt;string&gt;
  (UriFactory.CreateStoredProcedureUri(DataBaseId, CollectionId, 
  "GetCollection"), new RequestOptions { PartitionKey = 
  new PartitionKey("test @test.com") });
  </code></pre>
  
  <p>Stored Procedure:</p>
  
  <pre><code>function GetCollection() {
      var context = getContext();
      var collectionManager = context.getCollection();        
      var collectionLink = collectionManager.getSelfLink();
  
      var query = "SELECT * FROM c";
  
      collectionManager.queryDocuments(collectionLink, query, function(err, documents){
          context.getResponse().setBody(documents);
      });
  }
  </code></pre>
  
  <p>Now I need to get all the documents from all partition in that collection. I have tried the below code, but it gives the error <strong><em>PartitionKey value must be supplied for this operation.</em></strong></p>
  
  <pre><code> var result = await documentRUClient.ExecuteStoredProcedureAsync&lt;string&gt;
      (UriFactory.CreateStoredProcedureUri(DataBaseId, CollectionId, 
      "GetCollection"));
  </code></pre>
  
  <p>Please suggest a way to achieve this.</p>