Don
DTDrizzle Team
•Created by Don on 12/23/2023 in #help
Property 'employees' does not exist on type 'DrizzleTypeError<"Seems like the schema generic is miss
seems to have resolved the error... now on to the next ...
4 replies
DTDrizzle Team
•Created by Don on 12/23/2023 in #help
Property 'employees' does not exist on type 'DrizzleTypeError<"Seems like the schema generic is miss
export const db = drizzle(poolConnection, {schema: { ...schema}, mode:"default"} );
4 replies
DTDrizzle Team
•Created by Don on 12/23/2023 in #help
Property 'employees' does not exist on type 'DrizzleTypeError<"Seems like the schema generic is miss
Think I resolved... changed the pool config to:
4 replies
DTDrizzle Team
•Created by Don on 12/21/2023 in #help
Drizzle MySQL Many to Many relations
thanks for your time and assisntance! you were a great help, thank you!
43 replies
DTDrizzle Team
•Created by Don on 12/21/2023 in #help
Drizzle MySQL Many to Many relations
I then tried the employee_strength table, the junction table which pulls in the employee and strength ... at least it has the data, a bit of redundant data....
43 replies
DTDrizzle Team
•Created by Don on 12/21/2023 in #help
Drizzle MySQL Many to Many relations
I am querying the employee table...
43 replies
DTDrizzle Team
•Created by Don on 12/21/2023 in #help
Drizzle MySQL Many to Many relations
Yes, working... I was thinking I would be able to get an employee with an array of strenths ...
43 replies
DTDrizzle Team
•Created by Don on 12/21/2023 in #help
Drizzle MySQL Many to Many relations
was hoping to get one employee object then an array of strength objects
43 replies
DTDrizzle Team
•Created by Don on 12/21/2023 in #help
Drizzle MySQL Many to Many relations
I get a juntion table row, then an employee object and a strength object...
43 replies
DTDrizzle Team
•Created by Don on 12/21/2023 in #help
Drizzle MySQL Many to Many relations
When I query against the junction table, I cn get it to provide the employee and strength... just not the way i was expecting...
43 replies
DTDrizzle Team
•Created by Don on 12/21/2023 in #help
Drizzle MySQL Many to Many relations
thought somehow it would pick up the export const employeeStrengthRelations
43 replies
DTDrizzle Team
•Created by Don on 12/21/2023 in #help
Drizzle MySQL Many to Many relations
I am trying to get the "title" on the strengths table ...
43 replies
DTDrizzle Team
•Created by Don on 12/21/2023 in #help
Drizzle MySQL Many to Many relations
I now get the employee_strength which is the junction table...
43 replies
DTDrizzle Team
•Created by Don on 12/21/2023 in #help
Drizzle MySQL Many to Many relations
how come i dont get the strengths which is the other side of the many to many ...
43 replies
DTDrizzle Team
•Created by Don on 12/21/2023 in #help
Drizzle MySQL Many to Many relations
That was it in the app module - thanks..
43 replies
DTDrizzle Team
•Created by Don on 12/21/2023 in #help
Drizzle MySQL Many to Many relations
import * as schema from '../drizzle/schema';
43 replies
DTDrizzle Team
•Created by Don on 12/21/2023 in #help
Drizzle MySQL Many to Many relations
In employee.service.ts. the entire schema is imported ...
43 replies
DTDrizzle Team
•Created by Don on 12/21/2023 in #help
Drizzle MySQL Many to Many relations
just added you. Appreciate your help
43 replies
DTDrizzle Team
•Created by Don on 12/21/2023 in #help
Drizzle MySQL Many to Many relations
right now it is local... i will get it up to a repo and invite you. Thank you for your assistance!!
43 replies
DTDrizzle Team
•Created by Don on 12/21/2023 in #help
Drizzle MySQL Many to Many relations
yes..
43 replies