for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Drupal\graphql\Plugin\GraphQL\Scalars;
use Drupal\graphql\GraphQL\Type\UploadType;
use Drupal\graphql\Plugin\GraphQL\PluggableSchemaBuilderInterface;
/**
* @GraphQLScalar(
* id = "upload",
* name = "Upload"
* )
*/
class GraphQLUpload extends ScalarPluginBase {
getPluginDefinition
* {@inheritdoc}
public function getDefinition(PluggableSchemaBuilderInterface $schemaBuilder) {
if (!isset($this->definition)) {
$this->definition = new UploadType();
}
return $this->definition;