prisma / prisma-admin-feedback

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

Embedded types are empty #140

Open entrptaher opened 5 years ago

entrptaher commented 5 years ago

Any embedded fields returns empty cell inside the admin.

image

# datamodel.prisma

type User {
  id: ID! @id
  name: String!
  email: String! @unique
  password: String!
  posts: [Post!]!
}

type Post {
  id: ID! @id
  user: User @relation(link: INLINE)
  published: Boolean! @default(value: false)
  title: String!
  content: Content!
}

type Content @embedded {
  data: String!
}

Versions:

prisma --version
Prisma CLI version: prisma/1.32.2 (linux-x64) node-v11.7.0

I can query it without any error inside the playground. image

sdnts commented 5 years ago

Hey @entrptaher, I'm aware of embedded types misbehaving right now. There's going to be a new release on alpha soon that will address this. Will let you know here when that drops!