Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Id in zod schema for frontend and backend? - Theo's Typesafe Cult
TTC
Theo's Typesafe Cult
•
4y ago
•
10 replies
utdev
Id in zod schema for frontend and backend?
Hi guys I am saving a
"client
" in my backend for that I have following basic schema
, which is used in my frontend and backend
const
clientSchema
=
z
.
object
({
id: z.
string
().
nullish
(),
const
clientSchema
=
z
.
object
({
id: z.
string
().
nullish
(),
I am not sure should I set the
id
id
to nullish or should it no be nullish
?
Theo's Typesafe Cult
Join
26,564
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Zod - sort schema
TTC
Theo's Typesafe Cult / questions
4y ago
JS Framework The Unifies Frontend and Backend
TTC
Theo's Typesafe Cult / questions
11mo ago
Ensure uniqueness for zod schema field
TTC
Theo's Typesafe Cult / questions
4y ago