prisma-graphql

What Does '?' Mean When Defining Prisma Schema Model?


In this example, we see:

name String?

Not completely sure on what the ? signifies here...


Solution

  • This means in DB. This field can be null. It's optional.