title: How to get nested items in dynamodb?
body: <p>I m using node typescript and local dynamodb. I'm unable to get a specific nested document.
  I m trying to get a post on the basis of id. I m using email as pk.<a href="https://i.stack.imgur.com/bpVds.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bpVds.png" alt="Here is the dynamodb table" /></a></p>
  <pre><code>let params1:any= {
        TableName: &quot;userTable&quot;,
        // Key: {
        //   email: event.body.email
  
        // },
        FilterExpression: &quot;#posts[0].#id = :postId&quot;,
         // KeyConditionExpression: `#postId= :postId`,
        ExpressionAttributeNames: {
          &quot;#posts&quot;: &quot;posts&quot;,
          &quot;#id&quot;: &quot;id&quot;,
  
        },
        ExpressionAttributeValues: {
          &quot;:postId&quot;: event.body.id
  
        },
  
       
  
      }
  </code></pre>