-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
When a schema defines a list using an interface, it looks like @miragejs/graphql
fails to build the field for the list
interface ItemRead {
authors: [String!]!
id: ID!
title: String!
}
type BookChapterRead implements ItemRead {
authors: [String!]!
chapter: Int
id: ID!
title: String!
}
type BookRead implements ItemRead {
authors: [String!]!
id: ID!
rating: Int
title: String!
}
type Query {
booksRead: [BookRead]
bookChapterRead: [BookChapterRead]
itemsRead: [ItemRead]
}
Querying for..
{
itemsRead {
id
title
authors
}
}
..fails with..
Expected Iterable, but did not find one for field "Query.itemsRead".
..while querying other fields works fine.
I put together a reproduction in the REPL https://miragejs.com/repl/v2/042996bcd5
Metadata
Metadata
Assignees
Labels
No labels