mirror of
https://github.com/graphql-python/graphene.git
synced 2025-02-02 20:54:16 +03:00
fixed: wrong example for interface
This commit is contained in:
parent
67c0872c9f
commit
11996e9121
|
@ -23,14 +23,14 @@ This example model defines a Character, which has a name. ``Human`` and
|
|||
name = graphene.String()
|
||||
|
||||
# Human is a Character implementation
|
||||
class Human(ObjectType):
|
||||
class Human(graphene.ObjectType):
|
||||
class Meta:
|
||||
interfaces = (Character, )
|
||||
|
||||
born_in = graphene.String()
|
||||
|
||||
# Droid is a Character implementation
|
||||
class Droid(Character):
|
||||
class Droid(graphene.ObjectType):
|
||||
class Meta:
|
||||
interfaces = (Character, )
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user