Using Composite Primary Key Input To findByPk #16869
Unanswered
liam-ot
asked this question in
Help & Questions
Replies: 1 comment
-
It's mostly because when Sequelize was first designed, it was designed without composite PK in mind. A few places still need to be updated to support them. One of the issues with |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I did not open this as an issue because I'd like to first know why it is not supported or if maybe it is and im not doing it correctly
I have a table which has a composite primary key (
username
andid
)I would like to be able to find them in such a way:
but that returns the error:
Any insight would be appreciated : )
Beta Was this translation helpful? Give feedback.
All reactions