Skip to content

Instantly share code, notes, and snippets.

@todd-demone
Created April 25, 2022 15:12
Show Gist options
  • Save todd-demone/7866795fc98842b9749f9a1036cc2a13 to your computer and use it in GitHub Desktop.
Save todd-demone/7866795fc98842b9749f9a1036cc2a13 to your computer and use it in GitHub Desktop.

Revisions

  1. Todd Demone created this gist Apr 25, 2022.
    3 changes: 3 additions & 0 deletions sequelize-eager-loading.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    const comments = await Comment.findAll( { include: User });

    console.log(JSON.stringify(comments, null, 2));