title: Google Datastore filter with OR condition
body: <p>I am working with NodeJS on Google App Engine with the Datastore database.</p>
  
  <p>I am using composite query filter and just need a basic "OR" condition.</p>
  
  <p>Example: Query Tasks that have Done = false OR priority = 4</p>
  
  <pre><code>const query = datastore.createQuery('Task')
    .filter('done', '=', false) //How to make this an OR condition?
    .filter('priority', '=', 4);
  </code></pre>
  
  <p>However, according to <a href="https://cloud.google.com/datastore/docs/concepts/queries#datastore-property-filter-nodejs" rel="noreferrer">the documentation</a>: </p>
  
  <blockquote>
    <p>Cloud Datastore currently only natively supports combining filters
    with the AND operator.</p>
  </blockquote>
  
  <p>What is a good way to achieve a basic OR condition without running two entirely separate queries and then combining the results?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I have my <a href="http://stackoverflow.com/a/47539300/2183592">solution described in detail here in my other post</a>. Any feedback for improvements to the solution would be appreciated since I'm still learning NodeJS.</p>