Aaron
DTDrizzle Team
•Created by titongo on 11/9/2023 in #help
need help abstracting a function
you can likely just do something like this within your schema definitions?
there's probably other ways to infer the posts relationship using some drizzle types but I'd have to play around a bit to see
12 replies
DTDrizzle Team
•Created by titongo on 11/9/2023 in #help
need help abstracting a function
@Stathis yeah, i've been doing:
this provides proper autocomplete and typesafety 😄
12 replies
DTDrizzle Team
•Created by Aaron on 12/22/2023 in #help
executing query builder sql
Thank you, just found I can use
format
from @planetscale/database
to get my rawSql to pass into sql.raw()
4 replies
DTDrizzle Team
•Created by titongo on 11/9/2023 in #help
need help abstracting a function
Thanks, this was helpful... I'm still trying to get the query client to change its return type based on what relations are passed in.
12 replies