Skip to content
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

Search if has many to many relation #179

Open
4unkur opened this issue Oct 9, 2018 · 1 comment
Open

Search if has many to many relation #179

4unkur opened this issue Oct 9, 2018 · 1 comment

Comments

@4unkur
Copy link

4unkur commented Oct 9, 2018

I have 2 models: Resume & Skill (many to many relationship)

I have to sort resumes by existence of the relation between some Skills.
Example:
Skill Ids 1,2,3.
Resume that has all 1,2,3 Skills will be on top
Resume that has 1, 2 OR 1, 3 OR 2, 3 Skills will go next
Then Resume that has at least one Skills attached
Then Resumes with no Skills with Ids 1,2,3

How can I achieve that?

@rajenghorecha
Copy link

check it out
#112

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants