I'm trying to get embedded documents working with ...
# prisma-client
m
I'm trying to get embedded documents working with mongodb, using prisma 3.14 and the structure according to the schema provided in the release notes of prisma 3.10 ( https://github.com/prisma/prisma/releases/tag/3.10.0 ). Running a query against the db I get an error telling me
Copy code
type EmailMessage { .... error: Model declarations have to be indicated with the `model` keyword`
my schema:
Copy code
model Email {
  id            String @id @map("_id") @db.ObjectId
  name          String @unique
  emailMessage  EmailMessage
  emailSubject  EmailSubject
  receiverGroup Receiver[]
  isActivated   Boolean @default(value: true)
  role          String
  btnName       String
}

type EmailMessage {
  id        String
  messageDe String
  messageEn String
}

type EmailSubject {
  id        String
  subjectDe String
  subjectEn String
}

type Receiver {
  id        String
  email     String
  firstName String
  lastName  String
}
What am I doing wrong regarding these embedded documents ? Is there support for embedded document lists but not for embedded documents ?