Skip to content

Conversation

dschafer
Copy link
Contributor

It was odd in our demo that hero returned a Character, but it always returned R2-D2, who is a Droid. Change it so this takes an optional episode, and returns Luke as the hero for Episode V, demonstrating more clearly why this field returns an Interface, and the value of querying for __typename to find the concrete type.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol

@leebyron
Copy link
Contributor

awesome, land away

dschafer added a commit that referenced this pull request Jul 16, 2015
Allow an episode to be passed to hero
@dschafer dschafer merged commit 18a9ac7 into master Jul 16, 2015
@dschafer dschafer deleted the hero branch July 16, 2015 23:49
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you misspelled "Lando" here.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants