Created
December 22, 2021 19:07
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum Episode { | |
NEWHOPE | |
EMPIRE | |
JEDI | |
} | |
interface Character { | |
id: String! | |
name: String | |
friends: [Character] | |
appearsIn: [Episode] | |
} | |
type Query { | |
hero(episode: Episode): Character | |
human(id: String!): Human | |
droid(id: String!): Droid | |
animal(id: String!): Animal | |
fungus(id: String!): Fungus | |
alien(id: String!): Alien | |
} | |
type Human implements Character { | |
id: String! | |
name: String | |
friends: [Character] | |
appearsIn: [Episode] | |
primaryFunction: String | |
} | |
type Droid implements Character { | |
id: String! | |
name: String | |
friends: [Character] | |
appearsIn: [Episode] | |
primaryFunction: String | |
} | |
type Animal implements Character { | |
id: String! | |
name: String | |
friends: [Character] | |
appearsIn: [Episode] | |
primaryFunction: String | |
} | |
type Fungus implements Character { | |
id: String! | |
name: String | |
friends: [Character] | |
appearsIn: [Episode] | |
primaryFunction: String | |
} | |
type Alien implements Character { | |
id: String! | |
name: String | |
friends: [Character] | |
appearsIn: [Episode] | |
primaryFunction: String | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment