Sequelize Query



[Sequelize Static Function](https://texonom.com/sequelize-static-function-340f67d2b8054b3a85acc062d3ee4f33)

find = findone
> 
> [sequelize find](https://texonom.com/sequelize-find-9f3bb50b587044748b4cb9559d408c82)
> 

> 
> [sequelize findOne](https://texonom.com/sequelize-findone-119829d97e494f46a8e01b277b7d3c2c)
> 


[sequelize findAll](https://texonom.com/sequelize-findall-0b254eae4c3a403aabb7490a79d2968e)


[sequelize create](https://texonom.com/sequelize-create-0378f9585a7e4a1ab41823d86eb91bf0)


[sequelize update](https://texonom.com/sequelize-update-d5819ecd0d004187bc14e7b36a233183)


[sequelize delete](https://texonom.com/sequelize-delete-bbf64b44ba234c819a9d2d6b6979d569)


[sequelize findAndCoun](https://texonom.com/sequelize-findandcoun-13df9d20f3484405a60c74877a533df6)


[sequelize count](https://texonom.com/sequelize-count-8c974e5e26ae405083eab7d951aee6be)


`dataValues` - `raw: true`

`.toJSON()` 으로 변경해줘야함



![](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F11d74670-44e0-4519-8e7b-0d6452adfd0f%2FUntitled.png?table=block&id=03d77735-56ac-44ac-9263-195c244346c6&cache=v2)


## great notion
> [[ORM] Sequelize , 자동 테이블 생성 및 DB 접근](https://3dmpengines.tistory.com/1990)

### great example
> [Sequelize WHERE sequelize.fn(...) AND something='something' ordering issue](https://stackoverflow.com/questions/43274383/sequelize-where-sequelize-fn-and-something-something-ordering-issue)

### toJson()
> [Sequelize, convert entity to plain object](https://stackoverflow.com/questions/21961818/sequelize-convert-entity-to-plain-object)






