adminjs-prisma icon indicating copy to clipboard operation
adminjs-prisma copied to clipboard

Support type block in schema

Open x-ray-s opened this issue 3 years ago • 1 comments

in schema.prisma

model Product {
  id     String  @id @default(auto()) @map("_id") @db.ObjectId
  name   String
  photos Photo[]
}

type Photo {
  height Int
  width  Int
  url    String
}

When Prisma data source is Mongodb, this schema will be warned that "Unhandled type: Photo".

docs ref

I think this lib needs support type in schema.

x-ray-s avatar Aug 06 '22 15:08 x-ray-s