website/public/API/queries/queries.php

14 lines
296 B
PHP
Raw Normal View History

2022-03-08 09:54:38 +01:00
<?php
use GraphQL\Type\Definition\ObjectType;
use GraphQL\Type\Definition\Type;
$queryType = new ObjectType([
'name' => 'Query',
'fields' => [
'sitekey' => [
'type' => Type::string(),
'resolve' => fn ($rootValue, $args) => $sitekey,
],
],
]);