How do I make Drizzle infer the correct return type when dynamically adding a custom select field #4506
Unanswered
juniorforlife
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
Uh oh!
There was an error while loading. Please reload this page.
-
I'm building a query using a helper like this:
Then I pass it into my base query builder:
When execute the query, the response does have the question_count field BUT TypeScript says question_count doesn't exist.
What am I doing wrong here?
Beta Was this translation helpful? Give feedback.
All reactions