Best way to use select in a function that is returning a specific type - Drizzle Team