title: Use .contains() to retrieve values from DynamoDB
body: <p>I'm new with NoSQL Databases and am stuck with a problem. I just want to get keys from a table in DynamoDB that contains a specific value. I know that for key equals I can use:</p>
  
  <pre><code>response = table.query(
      KeyConditionExpression=Key('year').eq(1992) 
  ) 
  </code></pre>
  
  <p>But I can't use:</p>
  
  <pre><code> response = table.query(
      KeyConditionExpression=Key('year').contain('1992') 
  ) 
  </code></pre>
  
  <p>The error is:</p>
  
  <blockquote>
    <p>Key object has no attribute contain.</p>
  </blockquote>