Barrabasz
Barrabasz
DTDrizzle Team
Created by Barrabasz on 12/28/2023 in #help
How do I type the `with` object part of a query builder if I extract it to it's own object?
It seems typing it with the type you provided works but it does not help the type inference. I think the issue is that I am specifying specific columns in a nested relation. Any other ideas?
6 replies
DTDrizzle Team
Created by Barrabasz on 12/28/2023 in #help
How do I type the `with` object part of a query builder if I extract it to it's own object?
Thanks! @Angelelz Maybe as a suggestion for the future, there could be kind of a utility type that would extract all of those generics, kind of how FieldValues and Path works in react-hook-form.
6 replies
DTDrizzle Team
Created by Barrabasz on 12/27/2023 in #help
Can't set nullable field back to null in drizzle-studio
Also, when going into the queries tab and trying to run a query manually, it just throws a Something went wrong. Please check your query. There are no logs in the terminal and browser logs show this:
ReferenceError: index is not defined
at x.eval (eval at <anonymous> (index.js:828:27), <anonymous>:33:30)
at H1r (index.js:785:102163)
at C (index-a7075a70.js:1:2189)
at eval (eval at <anonymous> (index.js:828:27), <anonymous>:108:20)
at index.js:835:9
at runSelectedDrizzleQuery (index.js:299:950)
at Object.click (index.js:781:1363)
at HTMLDivElement.<anonymous> (index.js:230:23196)
at HTMLDivElement.s (index.js:35:1798)
(anonymous) @ index.js:21
ReferenceError: index is not defined
at x.eval (eval at <anonymous> (index.js:828:27), <anonymous>:33:30)
at H1r (index.js:785:102163)
at C (index-a7075a70.js:1:2189)
at eval (eval at <anonymous> (index.js:828:27), <anonymous>:108:20)
at index.js:835:9
at runSelectedDrizzleQuery (index.js:299:950)
at Object.click (index.js:781:1363)
at HTMLDivElement.<anonymous> (index.js:230:23196)
at HTMLDivElement.s (index.js:35:1798)
(anonymous) @ index.js:21
2 replies