Fixed starwars relay mutation

This commit is contained in:
Syrus Akbary 2016-08-22 23:11:02 -07:00
parent 4d0b9a0f15
commit bcd523082b

View File

@ -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)