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\Plugin\GraphQL\PluggableSchemaBuilder;
use Youshido\GraphQL\Type\Scalar\IntType;
/**
* Scalar integer type.
*
* @GraphQLScalar(
* id = "int",
* name = "Int",
* data_type = "integer"
* )
*/
class GraphQLInteger extends ScalarPluginBase {
getPluginDefinition
* {@inheritdoc}
public function getDefinition(PluggableSchemaBuilder $schemaBuilder) {
if (!isset($this->definition)) {
$this->definition = new IntType();
}
return $this->definition;