diff --git a/Command/CompileCommand.php b/Command/CompileCommand.php index 737e0be8b..edc9852d3 100644 --- a/Command/CompileCommand.php +++ b/Command/CompileCommand.php @@ -9,7 +9,7 @@ use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Style\SymfonyStyle; -class CompileCommand extends Command +final class CompileCommand extends Command { private $typeGenerator; diff --git a/Command/DebugCommand.php b/Command/DebugCommand.php index 07c53c1be..2e84016ba 100644 --- a/Command/DebugCommand.php +++ b/Command/DebugCommand.php @@ -53,6 +53,12 @@ protected function configure() InputOption::VALUE_IS_ARRAY | InputOption::VALUE_OPTIONAL, sprintf('filter by a category (%s).', implode(', ', self::$categories)) ) + ->addOption( + 'with-service-id', + null, + InputOption::VALUE_NONE, + 'also display service id' + ) ->setDescription('Display current GraphQL services (types, resolvers and mutations)'); } @@ -66,28 +72,41 @@ protected function execute(InputInterface $input, OutputInterface $output) } $categories = empty($categoriesOption) ? self::$categories : $categoriesOption; + $withServiceId = $input->getOption('with-service-id'); $io = new SymfonyStyle($input, $output); - $tableHeaders = ['id', 'aliases']; + $tableHeaders = ['solution id', 'aliases']; + if ($withServiceId) { + $tableHeaders[] = 'service id'; + } + foreach ($categories as $category) { $io->title(sprintf('GraphQL %ss Services', ucfirst($category))); /** @var FluentResolverInterface $resolver */ $resolver = $this->{$category.'Resolver'}; - $this->renderTable($resolver, $tableHeaders, $io); + $this->renderTable($resolver, $tableHeaders, $io, $withServiceId); } } - private function renderTable(FluentResolverInterface $resolver, array $tableHeaders, SymfonyStyle $io) + /** + * @param FluentResolverInterface $resolver + * @param array $tableHeaders + * @param SymfonyStyle $io + * @param bool $withServiceId + */ + private function renderTable(FluentResolverInterface $resolver, array $tableHeaders, SymfonyStyle $io, $withServiceId) { $tableRows = []; $solutionIDs = array_keys($resolver->getSolutions()); sort($solutionIDs); foreach ($solutionIDs as $solutionID) { $aliases = $resolver->getSolutionAliases($solutionID); - $aliases[] = $solutionID; $options = $resolver->getSolutionOptions($solutionID); - $tableRows[$options['id']] = [$options['id'], self::serializeAliases($aliases, $options)]; + $tableRows[$solutionID] = [$solutionID, self::serializeAliases($aliases, $options)]; + if ($withServiceId) { + $tableRows[$solutionID][] = $options['id']; + } } ksort($tableRows); $io->table($tableHeaders, $tableRows); diff --git a/Command/GraphQLDumpSchemaCommand.php b/Command/GraphQLDumpSchemaCommand.php index a40c37f49..3372d0e9a 100644 --- a/Command/GraphQLDumpSchemaCommand.php +++ b/Command/GraphQLDumpSchemaCommand.php @@ -4,28 +4,22 @@ use GraphQL\Type\Introspection; use GraphQL\Utils\SchemaPrinter; -use Overblog\GraphQLBundle\Request\Executor as RequestExecutor; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Style\SymfonyStyle; -use Symfony\Component\DependencyInjection\ContainerInterface; final class GraphQLDumpSchemaCommand extends Command { - /** @var ContainerInterface */ - private $container; + use RequestExecutorLazyLoaderTrait; /** @var string */ private $baseExportPath; - public function __construct( - ContainerInterface $container, - $baseExportPath - ) { + public function __construct($baseExportPath) + { parent::__construct(); - $this->container = $container; $this->baseExportPath = $baseExportPath; } @@ -123,12 +117,4 @@ private function useModernJsonFormat(InputInterface $input) return true === $modern; } - - /** - * @return RequestExecutor - */ - private function getRequestExecutor() - { - return $this->container->get('overblog_graphql.request_executor'); - } } diff --git a/Command/RequestExecutorLazyLoaderTrait.php b/Command/RequestExecutorLazyLoaderTrait.php new file mode 100644 index 000000000..81171aece --- /dev/null +++ b/Command/RequestExecutorLazyLoaderTrait.php @@ -0,0 +1,31 @@ +requestExecutorFactory = $requestExecutorFactory; + } + + /** + * @return RequestExecutor + */ + protected function getRequestExecutor() + { + if (null === $this->requestExecutor && null !== $this->requestExecutorFactory) { + $this->requestExecutor = call_user_func_array(...$this->requestExecutorFactory); + } + + return $this->requestExecutor; + } +} diff --git a/Request/Executor.php b/Request/Executor.php index 00062b8b2..d01501031 100644 --- a/Request/Executor.php +++ b/Request/Executor.php @@ -23,7 +23,7 @@ class Executor const PROMISE_ADAPTER_SERVICE_ID = 'overblog_graphql.promise_adapter'; /** @var Schema[] */ - private $schemas; + private $schemas = []; /** @var EventDispatcherInterface|null */ private $dispatcher; diff --git a/Resources/config/services.yml b/Resources/config/services.yml index 9b480eed1..cb1902ecf 100644 --- a/Resources/config/services.yml +++ b/Resources/config/services.yml @@ -126,11 +126,12 @@ services: class: Overblog\GraphQLBundle\Command\GraphQLDumpSchemaCommand public: true arguments: + - "%kernel.root_dir%" + calls: # "overblog_graphql.request_executor" service must be load lazy since that command service # is instanced before ClassLoaderEvent. This issues is fix in Symfony 3.4 introducing lazy commands # see https://symfony.com/blog/new-in-symfony-3-4-lazy-commands - - '@service_container' - - "%kernel.root_dir%" + - ['setRequestExecutorFactory', [[['@service_container', 'get'], ['overblog_graphql.request_executor']]]] tags: - { name: console.command } diff --git a/Tests/Functional/Command/DebugCommandTest.php b/Tests/Functional/Command/DebugCommandTest.php index 7ae148302..796b4dca6 100644 --- a/Tests/Functional/Command/DebugCommandTest.php +++ b/Tests/Functional/Command/DebugCommandTest.php @@ -26,16 +26,18 @@ public function setUp() $this->command = static::$kernel->getContainer()->get('overblog_graphql.command.debug'); $this->commandTester = new CommandTester($this->command); - foreach (DebugCommand::getCategories() as $category) { - $this->logs[$category] = trim( - file_get_contents( - sprintf( - __DIR__.'/fixtures/%sdebug-%s.txt', - version_compare(Kernel::VERSION, '3.3.0') >= 0 ? 'case-sensitive/' : '', - $category - ) + $categories = DebugCommand::getCategories(); + $categories[] = 'all'; + + foreach ($categories as $category) { + $content = file_get_contents( + sprintf( + __DIR__.'/fixtures/debug/debug-%s.txt', + $category ) ); + + $this->logs[$category] = 'all' === $category ? $content : trim($content); } } @@ -60,6 +62,17 @@ public function testProcess(array $categories) $this->assertEquals($expected, $this->commandTester->getDisplay()); } + public function testProcessWithServiceId() + { + if (version_compare(Kernel::VERSION, '3.3.0') < 0) { + $this->markTestSkipped('Test only for Symfony >= 3.3.0.'); + } + + $this->commandTester->execute(['--with-service-id' => null]); + $this->assertEquals(0, $this->commandTester->getStatusCode()); + $this->assertEquals($this->logs['all'], $this->commandTester->getDisplay()); + } + /** * @expectedException \InvalidArgumentException * @expectedExceptionMessage Invalid category (fake) diff --git a/Tests/Functional/Command/fixtures/case-sensitive/debug-mutation.txt b/Tests/Functional/Command/fixtures/case-sensitive/debug-mutation.txt deleted file mode 100644 index 8742dc9f6..000000000 --- a/Tests/Functional/Command/fixtures/case-sensitive/debug-mutation.txt +++ /dev/null @@ -1,15 +0,0 @@ - -GraphQL Mutations Services -========================== - - --------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------- - id aliases - --------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------- - overblog_graphql.test.simple_mutation_with_thunk_fields simple_mutation_with_thunk_fields (method: mutate) - Overblog\GraphQLBundle\Tests\Functional\App\Mutation\SimpleMutationWithThunkFieldsMutation::mutate (method: mutate) - overblog_graphql.test.simple_promise_mutation simple_promise_mutation (method: mutate) - Overblog\GraphQLBundle\Tests\Functional\App\Mutation\SimplePromiseMutation::mutate (method: mutate) - --------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------- - - - diff --git a/Tests/Functional/Command/fixtures/case-sensitive/debug-resolver.txt b/Tests/Functional/Command/fixtures/case-sensitive/debug-resolver.txt deleted file mode 100644 index 2d4d49640..000000000 --- a/Tests/Functional/Command/fixtures/case-sensitive/debug-resolver.txt +++ /dev/null @@ -1,19 +0,0 @@ - -GraphQL Resolvers Services -========================== - - ------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------- - id aliases - ------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------- - Overblog\GraphQLBundle\GraphQL\Relay\Mutation\MutationFieldResolver relay_mutation_field (method: __invoke) - Overblog\GraphQLBundle\GraphQL\Relay\Mutation\MutationFieldResolver (method: __invoke) - Overblog\GraphQLBundle\GraphQL\Relay\Node\GlobalIdFieldResolver relay_globalid_field (method: __invoke) - Overblog\GraphQLBundle\GraphQL\Relay\Node\GlobalIdFieldResolver (method: __invoke) - Overblog\GraphQLBundle\GraphQL\Relay\Node\NodeFieldResolver relay_node_field (method: __invoke) - Overblog\GraphQLBundle\GraphQL\Relay\Node\NodeFieldResolver (method: __invoke) - Overblog\GraphQLBundle\GraphQL\Relay\Node\PluralIdentifyingRootFieldResolver relay_plural_identifying_field (method: __invoke) - Overblog\GraphQLBundle\GraphQL\Relay\Node\PluralIdentifyingRootFieldResolver (method: __invoke) - ------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------- - - - diff --git a/Tests/Functional/Command/fixtures/case-sensitive/debug-type.txt b/Tests/Functional/Command/fixtures/case-sensitive/debug-type.txt deleted file mode 100644 index 5d8decace..000000000 --- a/Tests/Functional/Command/fixtures/case-sensitive/debug-type.txt +++ /dev/null @@ -1,37 +0,0 @@ - -GraphQL Types Services -====================== - - ------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------ - id aliases - ------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------ - Overblog\GraphQLBundle\Mutation\__DEFINITIONS__\PageInfoType PageInfo - Overblog\GraphQLBundle\Mutation\__DEFINITIONS__\PageInfoType - Overblog\GraphQLBundle\Mutation\__DEFINITIONS__\RootMutationType RootMutation - Overblog\GraphQLBundle\Mutation\__DEFINITIONS__\RootMutationType - Overblog\GraphQLBundle\Mutation\__DEFINITIONS__\simpleMutationInputType simpleMutationInput - Overblog\GraphQLBundle\Mutation\__DEFINITIONS__\simpleMutationInputType - Overblog\GraphQLBundle\Mutation\__DEFINITIONS__\simpleMutationPayloadType simpleMutationPayload - Overblog\GraphQLBundle\Mutation\__DEFINITIONS__\simpleMutationPayloadType - Overblog\GraphQLBundle\Mutation\__DEFINITIONS__\simpleMutationWithThunkFieldsInputType simpleMutationWithThunkFieldsInput - Overblog\GraphQLBundle\Mutation\__DEFINITIONS__\simpleMutationWithThunkFieldsInputType - Overblog\GraphQLBundle\Mutation\__DEFINITIONS__\simpleMutationWithThunkFieldsPayloadType simpleMutationWithThunkFieldsPayload - Overblog\GraphQLBundle\Mutation\__DEFINITIONS__\simpleMutationWithThunkFieldsPayloadType - Overblog\GraphQLBundle\Mutation\__DEFINITIONS__\simplePromiseMutationInputType simplePromiseMutationInput - Overblog\GraphQLBundle\Mutation\__DEFINITIONS__\simplePromiseMutationInputType - Overblog\GraphQLBundle\Mutation\__DEFINITIONS__\simplePromiseMutationPayloadType simplePromiseMutationPayload - Overblog\GraphQLBundle\Mutation\__DEFINITIONS__\simplePromiseMutationPayloadType - overblog_graphql.definition.boolean_type Boolean - GraphQL\Type\Definition\BooleanType - overblog_graphql.definition.float_type Float - GraphQL\Type\Definition\FloatType - overblog_graphql.definition.id_type ID - GraphQL\Type\Definition\IDType - overblog_graphql.definition.int_type Int - GraphQL\Type\Definition\IntType - overblog_graphql.definition.string_type String - GraphQL\Type\Definition\StringType - ------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------ - - - diff --git a/Tests/Functional/Command/fixtures/debug-mutation.txt b/Tests/Functional/Command/fixtures/debug-mutation.txt deleted file mode 100644 index 8742dc9f6..000000000 --- a/Tests/Functional/Command/fixtures/debug-mutation.txt +++ /dev/null @@ -1,15 +0,0 @@ - -GraphQL Mutations Services -========================== - - --------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------- - id aliases - --------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------- - overblog_graphql.test.simple_mutation_with_thunk_fields simple_mutation_with_thunk_fields (method: mutate) - Overblog\GraphQLBundle\Tests\Functional\App\Mutation\SimpleMutationWithThunkFieldsMutation::mutate (method: mutate) - overblog_graphql.test.simple_promise_mutation simple_promise_mutation (method: mutate) - Overblog\GraphQLBundle\Tests\Functional\App\Mutation\SimplePromiseMutation::mutate (method: mutate) - --------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------- - - - diff --git a/Tests/Functional/Command/fixtures/debug-resolver.txt b/Tests/Functional/Command/fixtures/debug-resolver.txt deleted file mode 100644 index 6fa4fe9e8..000000000 --- a/Tests/Functional/Command/fixtures/debug-resolver.txt +++ /dev/null @@ -1,19 +0,0 @@ - -GraphQL Resolvers Services -========================== - - ------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------- - id aliases - ------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------- - overblog\graphqlbundle\graphql\relay\mutation\mutationfieldresolver relay_mutation_field (method: __invoke) - Overblog\GraphQLBundle\GraphQL\Relay\Mutation\MutationFieldResolver (method: __invoke) - overblog\graphqlbundle\graphql\relay\node\globalidfieldresolver relay_globalid_field (method: __invoke) - Overblog\GraphQLBundle\GraphQL\Relay\Node\GlobalIdFieldResolver (method: __invoke) - overblog\graphqlbundle\graphql\relay\node\nodefieldresolver relay_node_field (method: __invoke) - Overblog\GraphQLBundle\GraphQL\Relay\Node\NodeFieldResolver (method: __invoke) - overblog\graphqlbundle\graphql\relay\node\pluralidentifyingrootfieldresolver relay_plural_identifying_field (method: __invoke) - Overblog\GraphQLBundle\GraphQL\Relay\Node\PluralIdentifyingRootFieldResolver (method: __invoke) - ------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------- - - - diff --git a/Tests/Functional/Command/fixtures/debug-type.txt b/Tests/Functional/Command/fixtures/debug-type.txt deleted file mode 100644 index 509ee368d..000000000 --- a/Tests/Functional/Command/fixtures/debug-type.txt +++ /dev/null @@ -1,37 +0,0 @@ - -GraphQL Types Services -====================== - - ------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------ - id aliases - ------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------ - overblog\graphqlbundle\mutation\__definitions__\pageinfotype PageInfo - Overblog\GraphQLBundle\Mutation\__DEFINITIONS__\PageInfoType - overblog\graphqlbundle\mutation\__definitions__\rootmutationtype RootMutation - Overblog\GraphQLBundle\Mutation\__DEFINITIONS__\RootMutationType - overblog\graphqlbundle\mutation\__definitions__\simplemutationinputtype simpleMutationInput - Overblog\GraphQLBundle\Mutation\__DEFINITIONS__\simpleMutationInputType - overblog\graphqlbundle\mutation\__definitions__\simplemutationpayloadtype simpleMutationPayload - Overblog\GraphQLBundle\Mutation\__DEFINITIONS__\simpleMutationPayloadType - overblog\graphqlbundle\mutation\__definitions__\simplemutationwiththunkfieldsinputtype simpleMutationWithThunkFieldsInput - Overblog\GraphQLBundle\Mutation\__DEFINITIONS__\simpleMutationWithThunkFieldsInputType - overblog\graphqlbundle\mutation\__definitions__\simplemutationwiththunkfieldspayloadtype simpleMutationWithThunkFieldsPayload - Overblog\GraphQLBundle\Mutation\__DEFINITIONS__\simpleMutationWithThunkFieldsPayloadType - overblog\graphqlbundle\mutation\__definitions__\simplepromisemutationinputtype simplePromiseMutationInput - Overblog\GraphQLBundle\Mutation\__DEFINITIONS__\simplePromiseMutationInputType - overblog\graphqlbundle\mutation\__definitions__\simplepromisemutationpayloadtype simplePromiseMutationPayload - Overblog\GraphQLBundle\Mutation\__DEFINITIONS__\simplePromiseMutationPayloadType - overblog_graphql.definition.boolean_type Boolean - GraphQL\Type\Definition\BooleanType - overblog_graphql.definition.float_type Float - GraphQL\Type\Definition\FloatType - overblog_graphql.definition.id_type ID - GraphQL\Type\Definition\IDType - overblog_graphql.definition.int_type Int - GraphQL\Type\Definition\IntType - overblog_graphql.definition.string_type String - GraphQL\Type\Definition\StringType - ------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------ - - - diff --git a/Tests/Functional/Command/fixtures/debug/debug-all.txt b/Tests/Functional/Command/fixtures/debug/debug-all.txt new file mode 100644 index 000000000..3e6f08d5c --- /dev/null +++ b/Tests/Functional/Command/fixtures/debug/debug-all.txt @@ -0,0 +1,50 @@ + +GraphQL Types Services +====================== + + ------------------------------------------------------------------------------------------ -------------------------------------- ------------------------------------------------------------------------------------------ + solution id aliases service id + ------------------------------------------------------------------------------------------ -------------------------------------- ------------------------------------------------------------------------------------------ + GraphQL\Type\Definition\BooleanType Boolean overblog_graphql.definition.boolean_type + GraphQL\Type\Definition\FloatType Float overblog_graphql.definition.float_type + GraphQL\Type\Definition\IDType ID overblog_graphql.definition.id_type + GraphQL\Type\Definition\IntType Int overblog_graphql.definition.int_type + GraphQL\Type\Definition\StringType String overblog_graphql.definition.string_type + Overblog\GraphQLBundle\Mutation\__DEFINITIONS__\PageInfoType PageInfo Overblog\GraphQLBundle\Mutation\__DEFINITIONS__\PageInfoType + Overblog\GraphQLBundle\Mutation\__DEFINITIONS__\RootMutationType RootMutation Overblog\GraphQLBundle\Mutation\__DEFINITIONS__\RootMutationType + Overblog\GraphQLBundle\Mutation\__DEFINITIONS__\simpleMutationInputType simpleMutationInput Overblog\GraphQLBundle\Mutation\__DEFINITIONS__\simpleMutationInputType + Overblog\GraphQLBundle\Mutation\__DEFINITIONS__\simpleMutationPayloadType simpleMutationPayload Overblog\GraphQLBundle\Mutation\__DEFINITIONS__\simpleMutationPayloadType + Overblog\GraphQLBundle\Mutation\__DEFINITIONS__\simpleMutationWithThunkFieldsInputType simpleMutationWithThunkFieldsInput Overblog\GraphQLBundle\Mutation\__DEFINITIONS__\simpleMutationWithThunkFieldsInputType + Overblog\GraphQLBundle\Mutation\__DEFINITIONS__\simpleMutationWithThunkFieldsPayloadType simpleMutationWithThunkFieldsPayload Overblog\GraphQLBundle\Mutation\__DEFINITIONS__\simpleMutationWithThunkFieldsPayloadType + Overblog\GraphQLBundle\Mutation\__DEFINITIONS__\simplePromiseMutationInputType simplePromiseMutationInput Overblog\GraphQLBundle\Mutation\__DEFINITIONS__\simplePromiseMutationInputType + Overblog\GraphQLBundle\Mutation\__DEFINITIONS__\simplePromiseMutationPayloadType simplePromiseMutationPayload Overblog\GraphQLBundle\Mutation\__DEFINITIONS__\simplePromiseMutationPayloadType + ------------------------------------------------------------------------------------------ -------------------------------------- ------------------------------------------------------------------------------------------ + + + +GraphQL Mutations Services +========================== + + ---------------------------------------------------------------------------------------------------- ---------------------------------------------------- --------------------------------------------------------- + solution id aliases service id + ---------------------------------------------------------------------------------------------------- ---------------------------------------------------- --------------------------------------------------------- + Overblog\GraphQLBundle\Tests\Functional\App\Mutation\SimpleMutationWithThunkFieldsMutation::mutate simple_mutation_with_thunk_fields (method: mutate) overblog_graphql.test.simple_mutation_with_thunk_fields + Overblog\GraphQLBundle\Tests\Functional\App\Mutation\SimplePromiseMutation::mutate simple_promise_mutation (method: mutate) overblog_graphql.test.simple_promise_mutation + ---------------------------------------------------------------------------------------------------- ---------------------------------------------------- --------------------------------------------------------- + + + +GraphQL Resolvers Services +========================== + + ------------------------------------------------------------------------------ --------------------------------------------------- ------------------------------------------------------------------------------ + solution id aliases service id + ------------------------------------------------------------------------------ --------------------------------------------------- ------------------------------------------------------------------------------ + Overblog\GraphQLBundle\GraphQL\Relay\Mutation\MutationFieldResolver relay_mutation_field (method: __invoke) Overblog\GraphQLBundle\GraphQL\Relay\Mutation\MutationFieldResolver + Overblog\GraphQLBundle\GraphQL\Relay\Node\GlobalIdFieldResolver relay_globalid_field (method: __invoke) Overblog\GraphQLBundle\GraphQL\Relay\Node\GlobalIdFieldResolver + Overblog\GraphQLBundle\GraphQL\Relay\Node\NodeFieldResolver relay_node_field (method: __invoke) Overblog\GraphQLBundle\GraphQL\Relay\Node\NodeFieldResolver + Overblog\GraphQLBundle\GraphQL\Relay\Node\PluralIdentifyingRootFieldResolver relay_plural_identifying_field (method: __invoke) Overblog\GraphQLBundle\GraphQL\Relay\Node\PluralIdentifyingRootFieldResolver + ------------------------------------------------------------------------------ --------------------------------------------------- ------------------------------------------------------------------------------ + + + diff --git a/Tests/Functional/Command/fixtures/debug/debug-mutation.txt b/Tests/Functional/Command/fixtures/debug/debug-mutation.txt new file mode 100644 index 000000000..a56827429 --- /dev/null +++ b/Tests/Functional/Command/fixtures/debug/debug-mutation.txt @@ -0,0 +1,13 @@ + +GraphQL Mutations Services +========================== + + ---------------------------------------------------------------------------------------------------- ---------------------------------------------------- + solution id aliases + ---------------------------------------------------------------------------------------------------- ---------------------------------------------------- + Overblog\GraphQLBundle\Tests\Functional\App\Mutation\SimpleMutationWithThunkFieldsMutation::mutate simple_mutation_with_thunk_fields (method: mutate) + Overblog\GraphQLBundle\Tests\Functional\App\Mutation\SimplePromiseMutation::mutate simple_promise_mutation (method: mutate) + ---------------------------------------------------------------------------------------------------- ---------------------------------------------------- + + + diff --git a/Tests/Functional/Command/fixtures/debug/debug-resolver.txt b/Tests/Functional/Command/fixtures/debug/debug-resolver.txt new file mode 100644 index 000000000..a85e8a0e6 --- /dev/null +++ b/Tests/Functional/Command/fixtures/debug/debug-resolver.txt @@ -0,0 +1,15 @@ + +GraphQL Resolvers Services +========================== + + ------------------------------------------------------------------------------ --------------------------------------------------- + solution id aliases + ------------------------------------------------------------------------------ --------------------------------------------------- + Overblog\GraphQLBundle\GraphQL\Relay\Mutation\MutationFieldResolver relay_mutation_field (method: __invoke) + Overblog\GraphQLBundle\GraphQL\Relay\Node\GlobalIdFieldResolver relay_globalid_field (method: __invoke) + Overblog\GraphQLBundle\GraphQL\Relay\Node\NodeFieldResolver relay_node_field (method: __invoke) + Overblog\GraphQLBundle\GraphQL\Relay\Node\PluralIdentifyingRootFieldResolver relay_plural_identifying_field (method: __invoke) + ------------------------------------------------------------------------------ --------------------------------------------------- + + + diff --git a/Tests/Functional/Command/fixtures/debug/debug-type.txt b/Tests/Functional/Command/fixtures/debug/debug-type.txt new file mode 100644 index 000000000..2b57369bd --- /dev/null +++ b/Tests/Functional/Command/fixtures/debug/debug-type.txt @@ -0,0 +1,24 @@ + +GraphQL Types Services +====================== + + ------------------------------------------------------------------------------------------ -------------------------------------- + solution id aliases + ------------------------------------------------------------------------------------------ -------------------------------------- + GraphQL\Type\Definition\BooleanType Boolean + GraphQL\Type\Definition\FloatType Float + GraphQL\Type\Definition\IDType ID + GraphQL\Type\Definition\IntType Int + GraphQL\Type\Definition\StringType String + Overblog\GraphQLBundle\Mutation\__DEFINITIONS__\PageInfoType PageInfo + Overblog\GraphQLBundle\Mutation\__DEFINITIONS__\RootMutationType RootMutation + Overblog\GraphQLBundle\Mutation\__DEFINITIONS__\simpleMutationInputType simpleMutationInput + Overblog\GraphQLBundle\Mutation\__DEFINITIONS__\simpleMutationPayloadType simpleMutationPayload + Overblog\GraphQLBundle\Mutation\__DEFINITIONS__\simpleMutationWithThunkFieldsInputType simpleMutationWithThunkFieldsInput + Overblog\GraphQLBundle\Mutation\__DEFINITIONS__\simpleMutationWithThunkFieldsPayloadType simpleMutationWithThunkFieldsPayload + Overblog\GraphQLBundle\Mutation\__DEFINITIONS__\simplePromiseMutationInputType simplePromiseMutationInput + Overblog\GraphQLBundle\Mutation\__DEFINITIONS__\simplePromiseMutationPayloadType simplePromiseMutationPayload + ------------------------------------------------------------------------------------------ -------------------------------------- + + +