Replies: 1 comment 3 replies
-
The reference |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm running into the following issue:
I have a many-to-many relationship between two tables ("Teams" and "Members"), and I have a join table called "Connections".
Connections has a primary key named "id", and the "id" column is causing a conflict when attempting a query like the following:
Team[1].members_dataset.exclude(id: [5,6])
Below is the SQL generated from the statement above:
Basically, I want to get the members of Team[1], excluding those with member ID's 5 and 6. However, the query can't differentiate between
members.id
andconnections.id
. Is there any good way around this?The error I'm receiving, for reference:
Beta Was this translation helpful? Give feedback.
All reactions