function($root, $args, $context) { $sum = new Addition(); return $sum->resolve($root, $args, $context); }, 'echo' => function($root, $args, $context) { $echo = new Echoer(); return $echo->resolve($root, $args, $context); }, 'prefix' => 'You said: ', ];