title: Can't get simple CosmosDB query to work via Node.js - but works fine via Azure's Query Explorer
body: <p>I'm using CosmosDB (node.js via documentdb api) - partitioned on 'id' only.</p>
  
  <p>A simple query (<code>SELECT * FROM c WHERE c.akunaCustomer = "xyz"</code>) works fine from Azure Query Explorer, but my node.js code gives the following error - running the identical query.</p>
  
  <pre><code>code: 400, BadRequest, Cross partition query is required but disabled. Please set x-ms-documentdb-query-enablecrosspartition to true, specify x-ms-documentdb-partitionkey, or revise your query to avoid this exception.
  </code></pre>
  
  <p>Here's my code:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var documentClient = require("documentdb").DocumentClient;
  var config = require("./config");
  
  var client = new documentClient(config.endpoint, {"masterKey": config.primaryKey});
  
  var databaseUrl = `dbs/${config.database.id}`;
  var collectionUrl = `${databaseUrl}/colls/${config.collection.id}`;
  
  client.queryDocuments(collectionUrl,
      'SELECT * FROM c WHERE c.akunaCustomer = "xyz"'
      ).toArray((err, results) =&gt; {
          if(err) {
              console.log(err);
          }
           else {
              for (var queryResult of results) {
                  let resultString = JSON.stringify(queryResult);
                  console.log(`Query: ${resultString}`);
              }
          }
      });</code></pre>
  </div>
  </div>
  </p>
  
  <p>Clearly I'm missing something. :-(  Any help would be appreciated.</p>