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

Ability to make ActiveRecord joins to root, parent, etc #44

Open
vovimayhem opened this issue Feb 9, 2023 · 1 comment
Open

Ability to make ActiveRecord joins to root, parent, etc #44

vovimayhem opened this issue Feb 9, 2023 · 1 comment

Comments

@vovimayhem
Copy link

vovimayhem commented Feb 9, 2023

I've been working on a project that uses this gem, and I'm frequently finding myself wanting to query with joins to root using ActiveRecord's joins with root... however, since root isn't a proper ActiveRecord relationship, that's not possible.

Also, having a family relationship as well, to bring up all the nodes belonging to the tree :)

@sjke Is this something you'd be interested in? I can gladly take a good try at this, I've already got a plan 😈 and might get some code ready as well.

@vovimayhem vovimayhem changed the title Ability to make ActiveRecord joins to root, parent - maybe make those active record relationships? Ability to make ActiveRecord joins to root, parent, etc Feb 9, 2023
@sjke
Copy link
Owner

sjke commented Mar 5, 2024

This is a very interesting idea and I think this functionality will be useful. Could you share your ideas/code?

@sjke sjke pinned this issue Mar 5, 2024
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