-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Many-many association on the same model (like user_user) doesn't work #155
Comments
Hi @TheoVitkovskiy, I've been super busy lately but I will try to look into this. In the meantime, would you mind posting your code for the |
Hi @JKHeadley, for this I just used the example from the documentation https://resthapi.com/docs/associations.html. You find it under the Linking Models section. In my specific use case I'm doing the same, but with book sections. Here is my code for the |
function(mongoose) {
} |
I found the same issue. In my case, this is where I found the association but from secondUserId to secondUserId. That looks like a bug to me. |
So, interesting further discovery: Just one note: Maybe I missed that from the documentation ;-) |
@OliS76 Thanks for the input! This will be the first issue I'll look into when I get a chance. |
The document inside the user_user collection only contains one user field. Should it not contain two user fields?
Steps to replicate the issue:
The text was updated successfully, but these errors were encountered: