균어
Explore posts from serversDTDrizzle Team
•Created by Perny on 3/12/2024 in #help
How can I get nested data to be inside the parent object
when it was possibly to use alias in left join i won't be 3 query
but i searched in drizzle types i cannot find alias props in left join method
or you can use sql``
6 replies
DTDrizzle Team
•Created by Perny on 3/12/2024 in #help
How can I get nested data to be inside the parent object
i think you can use like this
i have ways using sub query
6 replies
DTDrizzle Team
•Created by 균어 on 3/5/2024 in #help
How to get findMany with count?
i think this is not the best solution but using .select() it's hard to control relation between tables
9 replies
DTDrizzle Team
•Created by 균어 on 3/5/2024 in #help
How to get findMany with count?
i found solution using sub queries
9 replies
DTDrizzle Team
•Created by 균어 on 3/5/2024 in #help
How to get findMany with count?
if i use select() function i need to manually manage calling relations
9 replies
DTDrizzle Team
•Created by 균어 on 3/5/2024 in #help
How to get findMany with count?
i want to use findMany not select
9 replies
DTDrizzle Team
•Created by 균어 on 2/9/2024 in #help
PgTable type how to get at least have id field?
i need to check type is have id field
2 replies
DTDrizzle Team
•Created by Zamiel on 11/27/2023 in #help
What are the Drizzle conventions for giving names to Drizzle return types?
you can use where in query
40 replies
DTDrizzle Team
•Created by Zamiel on 11/27/2023 in #help
What are the Drizzle conventions for giving names to Drizzle return types?
you can use
40 replies
DTDrizzle Team
•Created by 균어 on 11/24/2023 in #help
Postgresql Join select columns with case
i want to simplify this code to 1 query
8 replies
DTDrizzle Team
•Created by 균어 on 11/24/2023 in #help
Postgresql Join select columns with case
is any way to simplify this code?
8 replies
DTDrizzle Team
•Created by 균어 on 11/24/2023 in #help
Postgresql Join select columns with case
i want to get like this
items must be an array but im getting only 1 object
8 replies
DTDrizzle Team
•Created by 균어 on 11/24/2023 in #help
Postgresql Join select columns with case
@Angelelz
8 replies
DTDrizzle Team
•Created by Timo Martinson on 11/24/2023 in #help
Where to get the types from?
you can use
2 replies
DTDrizzle Team
•Created by FelixNg on 11/24/2023 in #help
createInsertSchema & createSelectSchema difference
in delete you only need an id to delete
update you can use createInsertSchema(table).partial()
4 replies
DTDrizzle Team
•Created by rykuno on 7/2/2023 in #help
PGEnum -> Typescript Enum
im doing like this too
5 replies
TTCTheo's Typesafe Cult
•Created by 균어 on 6/18/2023 in #questions
How to get singular type on trpc query
getting error
typescript: Type '(ServiceOrder & { vehicle: Vehicle & { model: { name: string; }; }; })[] | undefined' has no matching index signature for type 'number'. [2537]
9 replies