Skip to content

Support type block in schema #20

Open

Description

@x-ray-s

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.

Activity

  1. mrelemerson commented on Jul 22, 2025

    @mrelemerson

    Being 2025 I also get the same error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions