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

separate: true for many to many associations #14121

Open
3 of 7 tasks
dor6-deepcred opened this issue Feb 16, 2022 · 0 comments
Open
3 of 7 tasks

separate: true for many to many associations #14121

dor6-deepcred opened this issue Feb 16, 2022 · 0 comments
Labels
type: feature For issues and PRs. For new features. Never breaking changes.

Comments

@dor6-deepcred
Copy link

Issue Creation Checklist

Feature Description

Is your feature request related to a problem? Please describe.

when including a one to many association you can pass separate: true to do this in a different query, this is great because when we have such relationship when we query serval resources it will be more performant to query their associations separately, active record (the Rails ORM) even do that by default when possible.
the problem is for some reason, in Sequelize, this is limited to one to many and excluded from many to many.

Describe the solution you'd like

I would like to add the separate: true option for many to many associations

Why should this be in Sequelize

I think its a core feature in an ORM

Describe alternatives/workarounds you've considered

doing this manually

Feature Request Checklist

Is this feature dialect-specific?

  • No. This feature is relevant to Sequelize as a whole.
  • Yes. This feature only applies to the following dialect(s): XXX, YYY, ZZZ

Would you be willing to implement this feature by submitting a Pull Request?

  • Yes, I have the time and I know how to start.
  • Yes, I have the time but I don't know how to start, I would need guidance.
  • No, I don't have the time, although I believe I could do it if I had the time...
  • No, I don't have the time and I wouldn't even know how to start.
@fzn0x fzn0x added the type: feature For issues and PRs. For new features. Never breaking changes. label Feb 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature For issues and PRs. For new features. Never breaking changes.
Projects
Development

No branches or pull requests

2 participants