prisma / prisma-admin-feedback

Feedback for Prisma Admin (currently in invite-only preview)
6 stars 1 forks source link

Not all required records are showing up as required in Prisma Admin #74

Closed etelsv closed 5 years ago

etelsv commented 5 years ago

There are fields that show up as required in my data model that don't like like they are in Prisma admin. This leads me to not be able to add a record when I think I should because I didn't know the fields wre required. Below is my data model and attached is the form version that Admin shows. Votes and cuisine in my case don't seem to be required.

type Restaurant {
  id: ID! @unique
  name: String! @unique
  cuisine: Cuisine!
  votes: [Vote!]!
  bracketLocation: Int!
}

type Vote {
  id: ID! @unique
  createdAt: DateTime!
  voter: String!
  token: String!
  restaurant: Restaurant!
}

type Cuisine {
  id: ID! @unique
  name: String!
}
screenshot 2019-02-26 at 18 40 25
huv1k commented 5 years ago

Thanks for reporting! This should be fixed 🚀