File tree 2 files changed +2
-24
lines changed
2 files changed +2
-24
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ CHANGELOG
5
5
--------------
6
6
7
7
## Breaking changes
8
+ - Remove deprecated ` \Rebing\GraphQL\Support\Type::$inputObject ` and ` \Rebing\GraphQL\Support\Type::$enumObject ` properties [ \# 752 / mfn] ( https://github.com/rebing/graphql-laravel/pull/752 ) \
9
+ Instead in your code, extend ` \Rebing\GraphQL\Support\InputType ` and ` \Rebing\GraphQL\Support\EnumType ` directly
8
10
- Support for Lumen has been removed
9
11
- Integrate laragraph/utils RequestParser [ \# 739 / mfn] ( https://github.com/rebing/graphql-laravel/pull/739 )
10
12
- batched queries will only work with ` POST ` requests
Original file line number Diff line number Diff line change 3
3
declare (strict_types = 1 );
4
4
namespace Rebing \GraphQL \Support ;
5
5
6
- use GraphQL \Type \Definition \EnumType ;
7
6
use GraphQL \Type \Definition \FieldDefinition ;
8
- use GraphQL \Type \Definition \InputObjectType ;
9
7
use GraphQL \Type \Definition \ObjectType ;
10
8
use GraphQL \Type \Definition \Type as GraphqlType ;
11
9
use Illuminate \Support \Str ;
17
15
abstract class Type implements TypeConvertible
18
16
{
19
17
protected $ attributes = [];
20
- /**
21
- * Set to `true` in your type when it should reflect an InputObject.
22
- * @var bool
23
- * @deprecated Use InputType instead
24
- * @see InputType
25
- */
26
- protected $ inputObject = false ;
27
- /**
28
- * Set to `true` in your type when it should reflect an Enum.
29
- * @var bool
30
- * @deprecated Use EnumType instead
31
- * @see EnumType
32
- */
33
- protected $ enumObject = false ;
34
18
35
19
public function attributes (): array
36
20
{
@@ -138,14 +122,6 @@ public function toArray(): array
138
122
139
123
public function toType (): GraphqlType
140
124
{
141
- if ($ this ->inputObject ) {
142
- return new InputObjectType ($ this ->toArray ());
143
- }
144
-
145
- if ($ this ->enumObject ) {
146
- return new EnumType ($ this ->toArray ());
147
- }
148
-
149
125
return new ObjectType ($ this ->toArray ());
150
126
}
151
127
You can’t perform that action at this time.
0 commit comments