Result Parser Interceptor #532
Unanswered
jpholtmeyer
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to use Slonik with Zod to validate query results.
It's a little unclear in the documentation if I need to implement my own custom Result Parser Interceptor for validation to happen.
https://github.com/gajus/slonik?tab=readme-ov-file#example-use-of-sqltype
It would appear that validation should work out-of-the-box here.
https://github.com/gajus/slonik?tab=readme-ov-file#runtime-validation
And according to step 2 here, I would need to create my own interceptor.
Does anyone know if a custom interceptor is required?
Beta Was this translation helpful? Give feedback.
All reactions