Sequelize equivalent of Inner Join with Left Join in Many-to-Many with Has-Many #13496
Unanswered
nbkhope
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 am trying to build the following query using sequelize, but am having trouble figure it out the mapping to sequelize constructs.
The goal is to list all the conditions from either a pet that you own or from a pet that you are a "friend" of (like a co-owner).
the query
attempt to build the query using sequelize
the problem
First I got the following:
Then, I tried adding the following to PetFriend model's
associate
:Only to get the error:
Reference
diagram
tables
associations
Beta Was this translation helpful? Give feedback.
All reactions