Expose drizzle types to allow for custom, typesafe SQL queries [3.0] #7449
Niklas-Mezynski
started this conversation in
Feature Requests & Ideas
Replies: 1 comment
-
drizzle kit can introspect types from db |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Idea for Payload 3.0
Sometimes I run in situations where I am required to run more complex SQL queries to satisfy my needs. I already figured out that I can use payloads drizzle objects to access the required tables and entities.
I figured out that code like this is already working:
"payload": "3.0.0-beta.71"
But there are no proper types for the drizzle tables and columns. If it is somehow possible to expose these from payload it would make writing such code much more robust while making payloads querying much more flexible.
Let me know about your thoughts!
(Somewhat realted to #6503)
Beta Was this translation helpful? Give feedback.
All reactions