Query
Root query
GraphQL Schema definition
- type Query {
- # Return the hero by episode.
- #
- # Arguments
- # episode: If omitted, returns the hero
- # of the whole saga. If provided, returns the hero of
- # that particular episode.
- (episode: Episode): Character
- # Return the Human by ID.
- #
- # Arguments
- # id: id of the human
- (id: ID!): Human
- # Return the Droid by ID.
- #
- # Arguments
- # id: id of the droid
- (id: ID!): Droid
- }
- type Query {
- # Return the hero by episode.
- #
- # Arguments
- # episode: If omitted, returns the hero
- # of the whole saga. If provided, returns the hero of
- # that particular episode.
- (episode: Episode): Character
- # Return the Human by ID.
- #
- # Arguments
- # id: id of the human
- (id: ID!): Human
- # Return the Droid by ID.
- #
- # Arguments
- # id: id of the droid
- (id: ID!): Droid
- }