File tree Expand file tree Collapse file tree 4 files changed +43
-10
lines changed Expand file tree Collapse file tree 4 files changed +43
-10
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace TheCodingMachine \GraphQLite \Bundle \Tests \Fixtures \Entities ;
4
+
5
+ class Book
6
+ {
7
+ public function __construct (
8
+ private readonly string $ title
9
+ )
10
+ {
11
+ }
12
+
13
+ public function getTitle (): string
14
+ {
15
+ return $ this ->title ;
16
+ }
17
+ }
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace TheCodingMachine \GraphQLite \Bundle \Tests \Fixtures \Types ;
4
+
5
+ use GraphQL \Type \Definition \ObjectType ;
6
+ use GraphQL \Type \Definition \Type ;
7
+
8
+ class CustomBookType extends ObjectType
9
+ {
10
+ public function __construct ()
11
+ {
12
+ parent ::__construct ([
13
+ 'name ' => 'Book ' ,
14
+ 'description ' => 'A book ' ,
15
+ 'fields ' => [
16
+ 'title ' => [
17
+ 'type ' => Type::nonNull (Type::string ()),
18
+ 'description ' => 'Book title ' ,
19
+ ],
20
+ ],
21
+ ]);
22
+ }
23
+
24
+ }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -20,9 +20,9 @@ services:
20
20
TheCodingMachine\GraphQLite\Bundle\Tests\NoSecurityBundleFixtures\ :
21
21
resource : ' ../../NoSecurityBundleFixtures/*'
22
22
23
- TheCodingMachine\Graphqlite\Bundle\Tests\Fixtures\Types\CustomOutputType :
23
+ TheCodingMachine\Graphqlite\Bundle\Tests\Fixtures\Types\CustomBookType :
24
24
tags :
25
- - { name: 'graphql.output_type' }
25
+ - { name: 'graphql.output_type', class: 'TheCodingMachine\GraphQLite\Bundle\Tests\Fixtures\Entities\Book' }
26
26
27
27
someService :
28
28
class : stdClass
You can’t perform that action at this time.
0 commit comments