Pulling foreign key values with include in Sequelize #13231
Unanswered
JimboGeesus
asked this question in
Help & Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have created a API for pulling logs (that works fine without my include keys!) in my controller and for some reason it doesn't accept them. They work ok on other API's with include keys so I know I have the basics right. I have tried the foreign keys ref's on both the dive log and the relating tables and have checked that the keys matched what is on the server file where they are initialised. I believe the tables I have referenced are all correct on the top of the page that are also In my index file.
Can there be any other places where I could be going wrong? I don't have any keys set-up on pgAdmin4 but they seem to work ok on other API's so I don't think it is because of that.
error message
Beta Was this translation helpful? Give feedback.
All reactions