foreach2845
DTDrizzle Team
•Created by foreach2845 on 6/1/2023 in #help
How to get InferModel to work with Relation model?
Is there a way to get the infer type for a relation model? eg:
type User = InferModel<typeof users, "select">;
type UserWithPosts = InferModel<typeof users, { posts: true }, "select" >;
2 replies