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
{{ message }}
Repository navigation
Improve Q.project ergonomics for basic selects #101
Q.project(S.Struct(SomeModel.pick("id", "name")) is a mouth full
Perhaps introduce Q.select as shorthand; Q.select(”id”, “name”) = Q.project(S.Struct(SomeModel.pick(”id”, “name”)))
or just allow Q.project to receive either field names; “id”, “name”, or fields: SomeModel.pick(”id”, “name”), next to a whole Schema.
Activity
patroza commentedon Jul 28, 2025
Another idea is:
MyModel.pickStruct(...)=S.Struct(MyModel.pick(...))