Skip to content

Chainable Query Builder with select #3346

Description

@bpamiri

Discussed in #3341

Originally posted by mikegrogan August 3, 2026
I started playing around with the chainable query builder (https://guides.wheels.dev/v4-0-0/basics/query-builder-and-scopes/), and it seems to be working well. Might like this better than findall() at some point. However, I find myself wanting to still limit the fields down to just what is needed. Select doesn't seem to be chainable?

Something like this

model("person")
.select("firstname,lastname,email")
.where("id","1234")
.get();

I see some Rails has some docs on their implementation.
https://guides.rubyonrails.org/active_record_querying.html#selecting-specific-fields

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions