LoginSignup
0
0

More than 5 years have passed since last update.

Lambdaで数字を文字列に変換してDBに保存する

Posted at

DynamoDBにIDを数字型で入れる際にハマったのでメモ。
数字型の場合でもDynamoDBには文字列に変換して保存する必要があるそうです。

ex.js
exports.handler = function(event, context) {

  var ID = event["ID"];

// ID が Number型で来ているのでStringに変換
  ID += '';
}
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0