-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Description
Given the following schema:
interface Invitable {
avatar_url: String
email: String
github_nickname: String
id: ID!
name: String
}
interface Node {
# ID of the object.
id: ID!
}
type Student implements Node, Invitable {
avatar_url: String
email: String
github_nickname: String
id: ID!
name: String
}
type Teacher implements Node, Invitable {
avatar_url: String
email: String
github_nickname: String
id: ID!
name: String
}
Relay compiler would throw a syntax error Unexpected name Invitable
, however, if I replace the ,
with &
the schema would compile:
interface Invitable {
avatar_url: String
email: String
github_nickname: String
id: ID!
name: String
}
interface Node {
# ID of the object.
id: ID!
}
type Student implements Node & Invitable {
avatar_url: String
email: String
github_nickname: String
id: ID!
name: String
}
type Teacher implements Node & Invitable {
avatar_url: String
email: String
github_nickname: String
id: ID!
name: String
}
Same issue can also be found here: https://stackoverflow.com/questions/49198778/relay-compiler-cannot-compile-graph-cool-graphql-schemas-with-multiple-inheritan
Info:
[email protected]
[email protected]
[email protected]
Schema auto generated via [email protected]
kguller, maxbeatty and multimericmaxbeatty
Metadata
Metadata
Assignees
Labels
No labels