Skip to content

Auto-select self by default on joining #73

@vladfaust

Description

@vladfaust
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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions