title: How to get ETag value for items returned by CreateItemQuery
body: <p>I'm using V3 (preview) of <a href="https://github.com/Azure/azure-cosmos-dotnet-v3" rel="nofollow noreferrer">Cosmos DB SDK for .NET</a>.</p>
  
  <p>When getting an item using <strong>ReadItemAsync</strong> the result has ETag available from the <strong>CosmosItemResponse</strong> wrapper of the entity object <a href="https://github.com/Azure/azure-cosmos-dotnet-v3/blob/master/Microsoft.Azure.Cosmos.Samples/CodeSamples/Shared/SalesOrder.cs" rel="nofollow noreferrer"><strong>SalesOrder</strong></a>:</p>
  
  <pre class="lang-cs prettyprint-override"><code>CosmosItemResponse&lt;SalesOrder&gt; itemResponse = 
      await container.Items.ReadItemAsync&lt;SalesOrder&gt;(
          partitionKey: "Account1",
          id: "SalesOrder1");
  Console.WriteLine("ETag of read item - {0}", itemResponse.ETag);
  </code></pre>
  
  <p>But when getting an item using <strong>CreateItemQuery</strong> (passing a SQL), the result is put in <strong>CosmosQueryResponse</strong> containing only the array of items instead of an array of <strong>CosmosItemResponse</strong>, so I cannot get the ETag of each item. Definition of entity <strong>Family</strong> is at <a href="https://github.com/Azure/azure-cosmos-dotnet-v3/blob/master/Microsoft.Azure.Cosmos.Samples/CodeSamples/Queries/Program.cs" rel="nofollow noreferrer">the end of this file</a>.</p>
  
  <pre class="lang-cs prettyprint-override"><code>var query = new CosmosSqlQueryDefinition("SELECT * FROM Families f WHERE f.id = @id AND f.Address.City = @city")
      .UseParameter("@id", "AndersonFamily")
      .UseParameter("@city", "Seattle");
  List&lt;Family&gt; results = new List&lt;Family&gt;();
  var resultSetIterator = container.Items.CreateItemQuery&lt;Family&gt;(query, partitionKey: "Anderson");
  while (resultSetIterator.HasMoreResults) {
      results.AddRange((await resultSetIterator.FetchNextSetAsync()));
  }
  </code></pre>
  
  <p>I cannot find other ways to get items using SQL so the ETag is returned with the item itself.  Anyone has a solution?</p>