Shouldn't it be [Teachers!]! rather than [Teachers!]?


#1

I have the followings in my datamodel.prisma.

type Teacher {
  id: ID! @unique
  email: String! @unique
  firstName: String!
  lastName: String!
  assignments: [Assignment!] @relation(name:"AssignmentToTeacher")
  advisees: [Student!] @relation(name:"StuentToTeacher")  
  subjects: [Subject!]!
  updatedAt: DateTime!
  createdAt: DateTime!
}

type Subject {
  id: ID! @unique
  name: String!
  teachers:[Teacher!]!
  updatedAt: DateTime!
  createdAt: DateTime!
}

After running prisma.deploy and look into DOCS in at the http://localhost:4466, I find no ! for [Teachers!] in createSubject.

Why is it [Teachers!] rather than [Teachers!]!?


#2

This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.