Answer Overflow Logo
Change Theme
Search Answer Overflow
GitHub
Add Your Server
Login
Home
Popular
Topics
Gaming
Programming
asciant
Posts
Comments
DT
Drizzle 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