Skip to content

Allow select(nil) #78

@vladfaust

Description

@vladfaust
posts = Onyx.query(Post
  .select(nil)
  .join(:author) do |x|
    x.select(:name)
    x.where(id: 1)
  end
)
SELECT author.name
FROM posts
JOIN users AS author ON users.id = posts.author_id
WHERE author.id = ?

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions