Skip to content

Instantly share code, notes, and snippets.

@todgru
Created April 21, 2020 20:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save todgru/9c1f8440a4b065c60364a8119523fec8 to your computer and use it in GitHub Desktop.
Save todgru/9c1f8440a4b065c60364a8119523fec8 to your computer and use it in GitHub Desktop.
sequelize nest raw

Returns an undecorated sequelize instance. this should work for many model methods.

const result = await model.findByPk(1, { raw: true, nest: true }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment