function() { return [ 'save' => [ 'type' => Type::int(), 'description' => 'Сохранение наклейки', 'args' => [ 'code' => Type::nonNull(Type::string()), 'value' => Type::nonNull(Type::string()), ], 'resolve' => function($root, $args) { return Settings::setValue($args['code'], $args['value']); }, ], ]; } ]; parent::__construct($config); } }