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
A more concise way to express what fields when doing a select would be nice.
Either via a boolean:
db.select({id: true,name: true,}).from(users);
...or as an array:
db.select(['id','name']).from(users);
It feels quite verbose to repeat the table schema now with id: users.id e.g..
It would also be useful to select all fields except certain fields, although I understand the rationale that this could leed to unanticipated overfetching.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
A more concise way to express what fields when doing a select would be nice.
Either via a boolean:
...or as an array:
It feels quite verbose to repeat the table schema now with
id: users.id
e.g..It would also be useful to select all fields except certain fields, although I understand the rationale that this could leed to unanticipated overfetching.
Beta Was this translation helpful? Give feedback.
All reactions