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\PluggableSchemaBuilderInterface;
use Youshido\GraphQL\Type\Scalar\DateTimeType;
/**
* Scalar string type.
*
* @GraphQLScalar(
* id = "date_time",
* name = "DateTime"
* )
*/
class GraphQLDateTime extends ScalarPluginBase {
getPluginDefinition
* {@inheritdoc}
public function getDefinition(PluggableSchemaBuilderInterface $schemaBuilder) {
if (!isset($this->definition)) {
$this->definition = new DateTimeType();
}
return $this->definition;