LoginSignup
1
0

More than 3 years have passed since last update.

SequelizeのtoJSON()とget()とgetDataValues()の違い

Last updated at Posted at 2019-06-28

get(), toJSON()

get()は, モデルにカラムとして定義されたプロパティーを取得。
toJSON()はget()を引数なしで呼び出すのと同じ。

getDataValues()

モデルのカラム定義のgetterを無視した生のデータを返す。

1
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
1
0