Omit properties when using InferInsertModel and InferSelectModel to create Type defintion

Is there a way to omit certain properties entirely rather than making them optional?
2 Replies
Skandalize
Skandalize7mo ago
Can't you just use TypeScripts Omit? Otherwise, could you explain further?
megamindat
megamindatOP7mo ago
Yes, but I was thinking.. Maybe something like readOnly() and writeOnly() when creating schema, which can be consumed when drawing those inferences.
Want results from more Discord servers?
Add your server