woubuc
woubuc
DTDrizzle Team
Created by woubuc on 12/9/2023 in #help
Entity classes
So does anyone have tips or pointers how to do stuff like mapping the ORM entities to DTOs for public APIs? Any libraries that work nicely with Drizzle? Or do y'all do all that manually?
8 replies
DTDrizzle Team
Created by woubuc on 12/9/2023 in #help
Entity classes
That's for the tables. But the entities returned from a query aren't classes, right? I can't do orm.select().from(users) and have it return an array of instances of a User class - they're just plain objects. Or am I missing something?
8 replies
DTDrizzle Team
Created by woubuc on 12/9/2023 in #help
Entity classes
If not classes, are there other convenient ways to handle auto mapping and decorator-like stuff for Drizzle entities?
8 replies