title: Getting results from List<IMongoQuery>
body: <p>The code I'm working on at the moment uses the C# Mongo driver and I do lots of simple stuff like this</p>
  
  <pre><code>var query = Query.EQ("SomeBooleanField", false);
  return Collection.FindAs&lt;MyType&gt;(query);
  </code></pre>
  
  <p>I have a requirement to write a query that is dynamic, i.e. the number of AND clauses varies. So I'm using something like this -</p>
  
  <pre><code>var andList = new List&lt;IMongoQuery&gt;();
  if (whatever) 
      andList.Add(Query.EQ("Field1", true));
  
  if (suchandsuch) 
      andList.Add(Query.EQ("Field2", false));
  
  var query = new QueryBuilder&lt;MyType&gt;();
  query.And(andList);
  </code></pre>
  
  <p>So my question is, what do I do with <strong>query</strong> in order to get some results out of it? I want a List or IEnumerable.</p>
  
  <p>I can't find any useful examples online and the driver documentation isn't too helpful. Any help gratefully appreciated.</p>