mirror of
https://github.com/graphql-python/graphene.git
synced 2025-02-02 20:54:16 +03:00
Update objecttypes.rst
This commit is contained in:
parent
c9aa461c65
commit
cdd4afb79a
|
@ -121,7 +121,7 @@ Let's see an example:
|
||||||
return self.name
|
return self.name
|
||||||
|
|
||||||
class Query(graphene.ObjectType):
|
class Query(graphene.ObjectType):
|
||||||
ship = graphene.Field(ShipNode)
|
ship = graphene.Field(ShipType)
|
||||||
|
|
||||||
def resolve_ship(self, context, args, info):
|
def resolve_ship(self, context, args, info):
|
||||||
return Ship(name='xwing')
|
return Ship(name='xwing')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user