균어
Explore posts from serversDTDrizzle Team
•Created by 균어 on 3/15/2024 in #help
how to get generic table type
I tried to use AnyPgTable type to make dynamic function
but i need to have id type
all tables have serial id column
2 replies
DTDrizzle Team
•Created by 균어 on 3/5/2024 in #help
How to get findMany with count?
I have following query
and have following relation
how to get serviceOrders with serviceOrderItems count?
9 replies
DTDrizzle Team
•Created by 균어 on 2/9/2024 in #help
PgTable type how to get at least have id field?
i want to make common crud service in nest js how to set PgTable type to have id field?
2 replies
DTDrizzle Team
•Created by 균어 on 11/24/2023 in #help
Postgresql Join select columns with case
in this case i want to get table2 tables with
like this how to do this?
8 replies
TTCTheo's Typesafe Cult
•Created by 균어 on 6/18/2023 in #questions
How to get singular type on trpc query
const serviceOrders = api.serviceOrders.getAll.useQuery({});
const [selectedServiceOrder, setSelectedServiceOrder] =
useState<(typeof serviceOrders.data)[0]>();
it says
typescript: Property '0' does not exist on type '(ServiceOrder & { vehicle: Vehicle & { model: { name: string; }; }; })[] | undefined'. [2339]
9 replies