Created
          April 25, 2022 15:10 
        
      - 
      
 - 
        
Save todd-demone/e99bd2ad980f981ad55427e01d71d22c to your computer and use it in GitHub Desktop.  
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // get User data | |
| const user = await User.findByPk(1); | |
| // get Comment data via the 'user' instance | |
| const comments = await user.getComments(); | |
| console.log(JSON.stringify(comments, null, 2)); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment