title: Using CreateDocumentQuery to Azure DocumentDB to pass both field and value to query a collection
body: <p>Assume I have a collection, with many documents, and I want to query that collection , where a field has a particular value.  However, I do NOT know ahead of time which field we will be querying. </p>
  
  <p>Here is an example of what I am trying to accomplish:</p>
  
  <p>Document azureDocuments = client.CreateDocumentQuery(UriFactory.CreateDocumentCollectionUri(sDatabaseName, sCollectionCollection)).Where(f => f.MyField=MyValue).AsEnumerable().FirstOrDefault();</p>
  
  <p>Has anyone done this successfully ?</p>