title: Unable to serialise AWSDate from RDS in AppSync response mapping template
body: <p>I'm building an AppSync project using serverless Aurora as my db, and stumbled across this strange error:</p>
  
  <pre><code>"Can't serialize value (/getUsers/created_at) : Unable to serialize `2019-09-28 07:36:13` as a valid DateTime Object."
  </code></pre>
  
  <p>This happens when I get a User object which looks like this:</p>
  
  <pre><code>type Users {
    id: String!
    name: String!
    description: String
    created_at: AWSDateTime
    updated_at: AWSDateTime
    logged_in: AWSDateTime
  }
  </code></pre>
  
  <p>The error seems to be happening because <code>$utils.rds.toJsonObject($ctx.result)[0][0]</code> can't parse an AWSDateTime. Which makes anything with a date impossible to serve from the database.</p>
  
  <p>If I simply select the object without dates <code>["SELECT id,name,description FROM Users WHERE id='$ctx.args.id'"]</code> it works fine.</p>
  
  <p>So how should dates be handled in AWS AppSync and Aurora? I have been unable to find any example or reference to handling dates in the documentation. :( </p>