Is there a way to infer "union of column name literals" from a table schema?
sortBy as an arg, I'm specifying it to be a string.I want to enforce
sortBy here to be one of the column names of a table, but ideally don't want to hardcode the column name literals here.I wonder Is there a way to infer "union of column name literals" from a table schema?
Appreciate any thoughts on this!
