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\IdType;
/**
* Scalar id type.
*
* @GraphQLScalar(
* id = "id",
* name = "ID",
* data_type = "id"
* )
*/
class GraphQLId extends ScalarPluginBase {
getPluginDefinition
* {@inheritdoc}
public function getDefinition(PluggableSchemaBuilder $schemaBuilder) {
if (!isset($this->definition)) {
$this->definition = new IdType();
}
return $this->definition;