aiji42 / prisma-data-proxy-alt

This is a library to alternate and self-host the Prisma Data Proxy (cloud.prisma.io)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot access data whose model name begins with a lowercase letter

aiji42 opened this issue · comments

As a workaround until the bug is fixed; you can use @@map("real_table_name") to separate the model name from the table name, which will solve this problem.
(Don't forget to re-run prisma generate in the Docker component after the schema modification.)

model User {
  id         String               @id

  @@map("tbl_User") // real table name
}

It appears that I was mistaken on this issue.
The problem did not reproduce itself and I was able to access the data without any problem.

スクリーンショット 2022-08-26 22 33 04

スクリーンショット 2022-08-26 22 35 49