-
-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(types): add json path type inference #592
Conversation
That's already a black-magic level, but validated behavior on our live project and everything works as expected. |
Gentle ping @soedirgo |
Seems to not work on embedded tables:
(I updated the types for public.users.data with But that can be handled in a separate PR 👍 |
Good catch, it was an issue with the parser and the closing parenthesis, I fixed it here: a9842b2 And added appropriate tests for coverage 👍 |
🎉 This PR is included in version 1.18.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
What kind of change does this PR introduce?
Allow users to override Json type with custom types, and take into account the "json accessor" to infer the proper resulting type.
What is the current behavior?
Given a table defined like so:
The following behavior is observed:
What is the new behavior?
Additional context
Add any other context or screenshots.