mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-29 13:03:56 +03:00
Fixed starwars relay mutation
This commit is contained in:
parent
4d0b9a0f15
commit
bcd523082b
|
@ -47,8 +47,8 @@ class IntroduceShip(relay.ClientIDMutation):
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def mutate_and_get_payload(cls, input, context, info):
|
def mutate_and_get_payload(cls, input, context, info):
|
||||||
ship_name = input.get('shipName')
|
ship_name = input.get('ship_name')
|
||||||
faction_id = input.get('factionId')
|
faction_id = input.get('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