You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
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