Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ CHANGELOG
- 1 route for each schema + 1 route for the group prefix (default schema)
- If GraphiQL is enabled: 1 route graphiql route for each schema + 1 for the
graphiql group prefix (default schema)
- This also means that the per schema config key `method` (aka HTTP method)
is not supported anymore
- It's now possible to prevent the registering of any routes by making the top
level `route` an empty array or null
- `\Rebing\GraphQL\GraphQL::routeNameTransformer` has been removed
Expand Down
1 change: 0 additions & 1 deletion config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@
// ExampleType::class,
],
'middleware' => [],
'method' => ['get', 'post'],
],
],

Expand Down
12 changes: 0 additions & 12 deletions tests/Support/Objects/ExampleSchemaWithMethod.php

This file was deleted.

3 changes: 0 additions & 3 deletions tests/Unit/NoRoutesRegisteredTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use Illuminate\Routing\Router;
use Rebing\GraphQL\Tests\Support\Objects\ExampleMiddleware;
use Rebing\GraphQL\Tests\Support\Objects\ExampleSchema;
use Rebing\GraphQL\Tests\Support\Objects\ExampleSchemaWithMethod;
use Rebing\GraphQL\Tests\TestCase;

class NoRoutesRegisteredTest extends TestCase
Expand All @@ -28,11 +27,9 @@ protected function getEnvironmentSetUp($app): void
'middleware' => [ExampleMiddleware::class],
],
'with_methods' => [
'method' => ['post'],
'middleware' => [ExampleMiddleware::class],
],
'class_based' => ExampleSchema::class,
'class_based_with_methods' => ExampleSchemaWithMethod::class,
'shorthand' => BuildSchema::build('
schema {
query: ShorthandExample
Expand Down
14 changes: 0 additions & 14 deletions tests/Unit/RoutesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
use Illuminate\Support\Collection;
use Rebing\GraphQL\Tests\Support\Objects\ExampleMiddleware;
use Rebing\GraphQL\Tests\Support\Objects\ExampleSchema;
use Rebing\GraphQL\Tests\Support\Objects\ExampleSchemaWithMethod;
use Rebing\GraphQL\Tests\TestCase;

class RoutesTest extends TestCase
Expand All @@ -32,11 +31,9 @@ protected function getEnvironmentSetUp($app): void
'middleware' => [ExampleMiddleware::class],
],
'with_methods' => [
'method' => ['post'],
'middleware' => [ExampleMiddleware::class],
],
'class_based' => ExampleSchema::class,
'class_based_with_methods' => ExampleSchemaWithMethod::class,
'shorthand' => BuildSchema::build('
schema {
query: ShorthandExample
Expand Down Expand Up @@ -108,17 +105,6 @@ public function testRoutes(): void
ExampleMiddleware::class,
],
],
'graphql.class_based_with_methods' => [
'methods' => [
'GET',
'POST',
'HEAD',
],
'uri' => 'graphql_test/class_based_with_methods',
'middleware' => [
ExampleMiddleware::class,
],
],
'graphql.shorthand' => [
'methods' => [
'GET',
Expand Down