Skip to content

Instantly share code, notes, and snippets.

@tibotiber
Last active November 19, 2018 20:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tibotiber/32ac40d4b55f7146e4b053a13a89cdb5 to your computer and use it in GitHub Desktop.
Save tibotiber/32ac40d4b55f7146e4b053a13a89cdb5 to your computer and use it in GitHub Desktop.
interface Character {
id: ID!
name: String!
friends: [Character]
appearsIn: [Episode]!
}
type Human implements Character {
id: ID!
name: String!
friends: [Character]
appearsIn: [Episode]!
starships: [Starship]
totalCredits: Int
}
type Droid implements Character {
id: ID!
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