prisma / prisma-admin-feedback

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

Prisma admin interface gives error with embedded types #108

Open Yellowhill opened 5 years ago

Yellowhill commented 5 years ago

Describe the bug Prisma admin interface gives an error and gets stuck in loading state when it tries to query an item with @embedded-links, but qraphql-playground query works. You can see the error and the datamodel I use in the screenshots.

prisma_admin_error playground_query

Versions:

Edit: 02.04.2019 Forgot to include my datamodel: ` type Item { id: ID! @id website: Website! title: String! description: String url: String! @unique smallImg: String largeImg: String author: Author! embeddedYoutubeLinks: [String!]! publishDate: DateTime! textContent: [TextContent!]! }

type TextContent @embedded { text: String! inlineLinks: [InlineLink]! }

type InlineLink @embedded { text: String! url: String! }

`

miketdonahue commented 5 years ago

This makes relation tables unusable in Admin too.

kalebjdavenport commented 4 years ago

Experiencing the same issue; I'd love to see a fix to this as well!