File tree Expand file tree Collapse file tree 5 files changed +2
-30
lines changed Expand file tree Collapse file tree 5 files changed +2
-30
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,8 @@ CHANGELOG
2828    -  1 route for each schema + 1 route for the group prefix (default schema)
2929    -  If GraphiQL is enabled: 1 route graphiql route for each schema + 1 for the
3030      graphiql group prefix (default schema)
31+     -  This also means that the per schema config key ` method `  (aka HTTP method)
32+       is not supported anymore
3133  -  It's now possible to prevent the registering of any routes by making the top
3234    level ` route `  an empty array or null
3335  -  ` \Rebing\GraphQL\GraphQL::routeNameTransformer `  has been removed
Original file line number Diff line number Diff line change 8484                // ExampleType::class, 
8585            ],
8686            'middleware '  => [],
87-             'method '  => ['get ' , 'post ' ],
8887        ],
8988    ],
9089
Load Diff This file was deleted. 
Original file line number Diff line number Diff line change 77use  Illuminate \Routing \Router ;
88use  Rebing \GraphQL \Tests \Support \Objects \ExampleMiddleware ;
99use  Rebing \GraphQL \Tests \Support \Objects \ExampleSchema ;
10- use  Rebing \GraphQL \Tests \Support \Objects \ExampleSchemaWithMethod ;
1110use  Rebing \GraphQL \Tests \TestCase ;
1211
1312class  NoRoutesRegisteredTest extends  TestCase
@@ -28,11 +27,9 @@ protected function getEnvironmentSetUp($app): void
2827                    'middleware '  => [ExampleMiddleware::class],
2928                ],
3029                'with_methods '  => [
31-                     'method '  => ['post ' ],
3230                    'middleware '  => [ExampleMiddleware::class],
3331                ],
3432                'class_based '  => ExampleSchema::class,
35-                 'class_based_with_methods '  => ExampleSchemaWithMethod::class,
3633                'shorthand '  => BuildSchema::build (' 
3734                    schema { 
3835                        query: ShorthandExample 
Original file line number Diff line number Diff line change 88use  Illuminate \Support \Collection ;
99use  Rebing \GraphQL \Tests \Support \Objects \ExampleMiddleware ;
1010use  Rebing \GraphQL \Tests \Support \Objects \ExampleSchema ;
11- use  Rebing \GraphQL \Tests \Support \Objects \ExampleSchemaWithMethod ;
1211use  Rebing \GraphQL \Tests \TestCase ;
1312
1413class  RoutesTest extends  TestCase
@@ -32,11 +31,9 @@ protected function getEnvironmentSetUp($app): void
3231                    'middleware '  => [ExampleMiddleware::class],
3332                ],
3433                'with_methods '  => [
35-                     'method '  => ['post ' ],
3634                    'middleware '  => [ExampleMiddleware::class],
3735                ],
3836                'class_based '  => ExampleSchema::class,
39-                 'class_based_with_methods '  => ExampleSchemaWithMethod::class,
4037                'shorthand '  => BuildSchema::build (' 
4138                    schema { 
4239                        query: ShorthandExample 
@@ -108,17 +105,6 @@ public function testRoutes(): void
108105                    ExampleMiddleware::class,
109106                ],
110107            ],
111-             'graphql.class_based_with_methods '  => [
112-                 'methods '  => [
113-                     'GET ' ,
114-                     'POST ' ,
115-                     'HEAD ' ,
116-                 ],
117-                 'uri '  => 'graphql_test/class_based_with_methods ' ,
118-                 'middleware '  => [
119-                     ExampleMiddleware::class,
120-                 ],
121-             ],
122108            'graphql.shorthand '  => [
123109                'methods '  => [
124110                    'GET ' ,
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments