Merge pull request #370 from sangheestyle/patch-1

fixed: wrong example for interface
This commit is contained in:
Syrus Akbary 2016-11-21 09:21:25 -08:00 committed by GitHub
commit 5cfa895881

View File

@ -23,14 +23,14 @@ This example model defines a Character, which has a name. ``Human`` and
name = graphene.String() name = graphene.String()
# Human is a Character implementation # Human is a Character implementation
class Human(ObjectType): class Human(graphene.ObjectType):
class Meta: class Meta:
interfaces = (Character, ) interfaces = (Character, )
born_in = graphene.String() born_in = graphene.String()
# Droid is a Character implementation # Droid is a Character implementation
class Droid(Character): class Droid(graphene.ObjectType):
class Meta: class Meta:
interfaces = (Character, ) interfaces = (Character, )