Hi all, I'm not sure what happened but I'm getting...
# orm-help
n
Hi all, I'm not sure what happened but I'm getting a really weird error when trying to run
prisma generate
(details in thread)
My types are Bundle and Standard, and I'm using datamodel 1.1 relation directives:
Copy code
type Bundle @db(name: "bundle") {
  id: ID! @id
  createdAt: DateTime! @createdAt
  updatedAt: DateTime! @updatedAt
  standards: [Standard!]! @relation(link: TABLE, name: "BundleStandard")
}

type BundleStandard @db(name: "bundle_standard") @relationTable {
  bundle: Bundle!
  standard: Standard!
}

type Standard @db(name: "standard") {
  externalID: ID! @id(strategy: NONE)
  createdAt: DateTime! @createdAt
  updatedAt: DateTime! @updatedAt
  title: String
  description: String
  grades: [Int] @scalarList(strategy: RELATION)
}
the client generation seems to work, but the schema generation crashes with this error: http://up.keats.me/dee35d84e03f
I'm using latest prisma (1.31.2) on latest mac os
Yikes, ok. I did some digging and it looks like I get a similar error if I have any
@relationTable
types in my datamodel.prisma
other relations are fine
woah, when I generate the schema directly from the endpoint now I've got a Node interface that I've never seen before 😰