I wanted to ask a question. so I'm trying to pull ...
# orm-help
a
I wanted to ask a question. so I'm trying to pull information from the database with prisma by doing this:
Copy code
const categories = await this.tableIds.categories.findMany()
with tableIds it works just fine, but when I try
categories
:
Copy code
const categories = await this.prisma.categories.findMany()
it just
Cannot read properties of undefined (reading 'findMany')
both are models in
schema.prisma