Type for select with relations?

Is it possible to infer select with relations?

Currently im using:
export let user: typeof user.$inferSelect & { profile?: typeof profile.$inferSelect };
Was this page helpful?