diff --git a/src/GraphQL/DataObjectType/InputQuantityValueInputType.php b/src/GraphQL/DataObjectType/InputQuantityValueInputType.php new file mode 100644 index 00000000..eba4a8cc --- /dev/null +++ b/src/GraphQL/DataObjectType/InputQuantityValueInputType.php @@ -0,0 +1,51 @@ + 'InputQuantityValueInput']) + { + $this->setGraphQLService($graphQlService); + $this->build($config); + parent::__construct($config); + } + + /** + * @param array $config + */ + public function build(&$config) + { + $resolver = new \Pimcore\Bundle\DataHubBundle\GraphQL\Resolver\DataObject($this->getGraphQlService()); + $resolver->setGraphQLService($this->getGraphQlService()); + + $config['fields'] = [ + 'value' => Type::string(), + 'unit' => Type::string(), + ]; + } +}