

@classmethod
def mutate_and_get_payload(cls, input, info):
    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)

dataset/ETHPy150Open graphql-python/graphene/docs/playground/examples/starwars_relay.schema.py IntroduceShip.mutate_and_get_payload/original