-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
Add support for TypedSQL queries. #398
Comments
Hi @gausie, thanks for opening this feature request, would you like to work on it? remember to add unit tests... |
I'm not even sure how is the plugin system working for TypedSQL... |
Yeah nor do I. I will gladly give it a go though
|
Had a little look into doing it - generating types with |
I think it will be easier to just spin up a docker postgres via docker compose and test using that db/schema. |
How would you want to do that in CI? |
Fair enough! |
I did some research at #427 and turns out nothing related to typedSql queries ends up inside dmmf... |
Prerequisites
Versions
Prisma 5.20.0
prisma-json-types-generator 3.1.1
Description
A query written with Prisma's new TypedSQL returns
JsonValue
as normal for a column that has been typed with this package.Steps to Reproduce
Write a TypedSQL query that returns a Json field. Observe that it is typed as
JsonValue
Expected Behavior
It should be typed according to the triple slash comment in schema.prisma
The text was updated successfully, but these errors were encountered: