What are you trying to do that requires
What are you trying to do that requires mutating a schema?
8 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
You can use
let
and reassign it dynamically.
But yeah if your needs are extremely dynamic it might make sense to do code generation like many x-to-Zod tools do.Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
You just keep referencing
schema
and it'll be the latest version.Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Imagine it's like a literal like a number:
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Yeah your original example wasn't reassigning schema