asciant
asciant
DTDrizzle Team
Created by asciant on 12/2/2023 in #help
Drizzle within class (cannot read properties of undefined)
I call the method with this way:
const user = await UserModel.findFirst({
where: (users, { eq }) => eq(users.id, 1),
});
const user = await UserModel.findFirst({
where: (users, { eq }) => eq(users.id, 1),
});
2 replies