Hi, everyone. I’m playing around with GraphQL (and...
# orm-help
d
Hi, everyone. I’m playing around with GraphQL (and Prisma) for the first time and I have a question. What’s wrong here? The idea is that a book can be created and have an array of versions, each of which is a particular shape (it has a name and a publish date). Is this the wrong way to approach it?
Copy code
type Book @model {
  id: ID! @unique
  name: String!
  versions: [Version!]!
}

type Version {
  name: String!
  publishDate: String!
}