From bcd523082bd451203af504284bd910b2f7cc6e33 Mon Sep 17 00:00:00 2001 From: Syrus Akbary Date: Mon, 22 Aug 2016 23:11:02 -0700 Subject: [PATCH] Fixed starwars relay mutation --- examples/starwars_relay/schema.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/starwars_relay/schema.py b/examples/starwars_relay/schema.py index 0a5bb352..8ad1a643 100644 --- a/examples/starwars_relay/schema.py +++ b/examples/starwars_relay/schema.py @@ -47,8 +47,8 @@ class IntroduceShip(relay.ClientIDMutation): @classmethod def mutate_and_get_payload(cls, input, context, info): - ship_name = input.get('shipName') - faction_id = input.get('factionId') + ship_name = input.get('ship_name') + faction_id = input.get('faction_id') ship = create_ship(ship_name, faction_id) faction = get_faction(faction_id) return IntroduceShip(ship=ship, faction=faction)