title: Swift NSObject hash table
body: <p>I'm trying to use hash tables in swift like in objective c:</p>
  
  <p>I'm trying to create the code below in swift (from the <a href="https://www.dropbox.com/developers/datastore/tutorial/ios" rel="nofollow">dropbox datastore api</a>):</p>
  
  <pre><code>NSArray *results = [tasksTbl query:@{ @"completed": @NO } error:nil];
  </code></pre>
  
  <p>The bit which is giving me trouble is the <code>query:@{ @"completed": @NO }</code>.</p>
  
  <p>What is the equivalent of this in swift?</p>