Marcus - noxify
DTDrizzle Team
•Created by shahidcodes on 4/13/2024 in #help
Fetching many to many along with some aggregation using select
Thanks Freddie for adding it to your repo ❤️
https://github.com/fredericoo/drizzle-toolbelt
16 replies
DTDrizzle Team
•Created by shahidcodes on 4/13/2024 in #help
Fetching many to many along with some aggregation using select
Checked the snippet from freddie after writing the snippet and it seems that his solution is more generic and reusable.
16 replies
DTDrizzle Team
•Created by shahidcodes on 4/13/2024 in #help
Fetching many to many along with some aggregation using select
Question: Whats the reason for the
fullJoin
instead of leftJoin
?16 replies
DTDrizzle Team
•Created by shahidcodes on 4/13/2024 in #help
Fetching many to many along with some aggregation using select
or something else - found this thread while testing many 2 many relations and currently testing your provided solution.
16 replies
DTDrizzle Team
•Created by shahidcodes on 4/13/2024 in #help
Fetching many to many along with some aggregation using select
As alternative to lodash.get => https://youmightnotneed.com/lodash#get
16 replies
Complex Query Builder from dynamic input - Typescript issue
Hi @Igal - just want you to know that everything works now.
I just changed the
as any
to as ExpressionWrapper<KyselyDatabase<TableDefinition>, "tablename", SqlBool>
Thanks again for spending your free time to solve this challenge.
Let's see if I can find something more challenging 😉6 replies
How to use multiple schema definitions ( e.g. <catalog>.<schema>.<table> )
setting the types seems to work:
https://kyse.link/fDkOU
Question: Is this the "way to go" ?
Note: it seems I missed something in the type definition, because I have now access to all fields from all tables ( tested it locally with two tables )
15 replies
How to use multiple schema definitions ( e.g. <catalog>.<schema>.<table> )
Have seen, that kysely provides a sql helper (
sql.id
).
Via:
I get the correct SELECT statement, but also some type errors 😕
Playground: https://kyse.link/sV7ww15 replies
TTCTheo's Typesafe Cult
•Created by Vlatko on 1/17/2024 in #questions
What library do you guys use for API's?
For graphql I use graphql-yoga with pothos - currently using „node:http“ as „server“ - works fine in our case (deployed to k8s)
6 replies
TTCTheo's Typesafe Cult
•Created by Vlatko on 1/17/2024 in #questions
What library do you guys use for API's?
Is there a standard?
Maybe https://github.com/honojs/hono could be a solution for your next project?
6 replies