Skip to content

Instantly share code, notes, and snippets.

@katesclau
Forked from tibotiber/interface.graphql
Created November 19, 2018 20:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save katesclau/c1b5d4bde9939dd1a9b18ab58fc6df76 to your computer and use it in GitHub Desktop.
Save katesclau/c1b5d4bde9939dd1a9b18ab58fc6df76 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