mirror of
https://github.com/graphql-python/graphene.git
synced 2025-07-18 03:52:24 +03:00
Fixed access dictionary value
This commit is contained in:
parent
0051f82b5f
commit
b1dc00a305
|
@ -22,8 +22,8 @@ subclass of ``relay.ClientIDMutation``.
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def mutate_and_get_payload(cls, root, info, **input):
|
def mutate_and_get_payload(cls, root, info, **input):
|
||||||
ship_name = input.ship_name
|
ship_name = input["ship_name"]
|
||||||
faction_id = input.faction_id
|
faction_id = input["faction_id"]
|
||||||
ship = create_ship(ship_name, faction_id)
|
ship = create_ship(ship_name, faction_id)
|
||||||
faction = get_faction(faction_id)
|
faction = get_faction(faction_id)
|
||||||
return IntroduceShip(ship=ship, faction=faction)
|
return IntroduceShip(ship=ship, faction=faction)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user