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

Auto-select self by default on joining #73

Closed
vladfaust opened this Issue Mar 2, 2019 · 0 comments

Comments

Projects
1 participant
@vladfaust
Copy link
Member

commented Mar 2, 2019

Post.first.select(Post).join(author: true) { |x| x.select(:name) }

Currently the developer has to explicitly add .select(Post), otherwise the post isn't loaded. By it should be loaded by default unless explicitly called .select. However, .join can be called at any time, even before parent query .select, therefore some kind of @select_self : Bool = true variable should be introduced in the Query.

@vladfaust vladfaust added this to the next minor milestone Mar 2, 2019

@vladfaust vladfaust self-assigned this Mar 2, 2019

@vladfaust vladfaust added this to To do in Kanban via automation Mar 2, 2019

@vladfaust vladfaust closed this in b0cd32d Mar 10, 2019

Kanban automation moved this from To do to Done Mar 10, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.