for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Date: 03.12.15
*
* @author Portey Vasil <[email protected]>
*/
namespace Youshido\GraphQL\Introspection;
use Youshido\GraphQL\Type\Config\TypeConfigInterface;
use Youshido\GraphQL\Type\Object\AbstractObjectType;
use Youshido\GraphQL\Type\TypeMap;
class InputValueType extends AbstractObjectType
{
protected function build(TypeConfigInterface $config)
$config
->addField('name', TypeMap::TYPE_STRING)
->addField('description', TypeMap::TYPE_STRING)
->addField('type', new QueryType())
->addField('defaultValue', TypeMap::TYPE_STRING); //todo: check here
}
public function resolve($value = null, $args = [])
return null;
* @return String type name
public function getName()
return '__InputValue';