You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My individual models are described as Zod schema and I am looking for a way to integrate schemas into Dynamoose. Is there a way to "hook" into the get/create/update methods to parse the item with Zod and throw an error?
The validate function would work if it were possible to validate the entire item instead of single attributes.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
My individual models are described as Zod schema and I am looking for a way to integrate schemas into Dynamoose. Is there a way to "hook" into the get/create/update methods to parse the item with Zod and throw an error?
The
validate
function would work if it were possible to validate the entire item instead of single attributes.Beta Was this translation helpful? Give feedback.
All reactions