title: DynamoDB: ValidationException: One or more parameter values were invalid: Missing the key email in the item
body: <p>I am new to Dynamodb. I have created one DynamoDB table. By using <a href="https://www.npmjs.com/package/dynamodb" rel="nofollow noreferrer">dynamodb-npm</a> and for validation I am using <code>joi</code>. I am confused and facing couple of issues. First, when I checked my AWS' Dynamodb dashboard, I don't see content and tags items even though it's in my Schema, <img src="https://i.stack.imgur.com/ZNl0E.png" alt="My AWS&#39; dynamodb dashboard">. Then I am trying to post data to my Blogpost database by using  Postman, (<img src="https://i.stack.imgur.com/DKjZJ.png" alt="This is how do I post it">). But I am getting error like this: <code>ValidationException: One or more parameter values were invalid: Missing the key email in the item</code>. </p>
  
  <p><strong>This is my dynamoDb setup</strong></p>
  
  <pre><code>var dynamo = require("dynamodb");
  const Joi = require("joi");
  dynamo.AWS.config.update({
    accessKeyId: "AKIAIBJS4SX3SWW**",
    secretAccessKey: "8O1dsZrIM43q8OF4kO/lMToW**",
    region: "us-east-1"
  });
  
  var BlogPost = dynamo.define("BlogPost", {
    hashKey: "email",
    rangeKey: "title",
    schema: {
      email: Joi.string().email(),
      title: Joi.string(),
      content: Joi.binary(),
      tags: dynamo.types.stringSet()
    }
  });
  
  dynamo.createTables(function(err) {
    if (err) {
      console.log("Error creating tables: ", err);
    } else {
      console.log("Tables has been created");
    }
  });
  
  module.exports = BlogPost;
  </code></pre>
  
  <p><strong>This is my express server</strong></p>
  
  <pre><code>const express = require("express");
  const app = express();
  const BlogPost = require("./db");
  
  app.post("/post", async (req, res, next) =&gt; {
    try {
      const logs = new BlogPost(req.body);
      const entry = await logs.save();
      res.json(entry);
    } catch (error) {
      if (error.name === "ValidationError") {
        res.status(422);
      }
      next(error);
    }
  });
  
  const port = process.env.PORT || 5000;
  app.listen(port, () =&gt; console.log(` App is listening at port ${port}!`));
  </code></pre>