@@ -7,7 +7,35 @@ CHANGELOG
7
7
## Breaking changes
8
8
### Added
9
9
- Upgrade to graphql-php 15 [ \# 953 / mfn] ( https://github.com/rebing/graphql-laravel/pull/953 ) \
10
- This includes possible breaking changes also outside of this package, see also https://github.com/webonyx/graphql-php/releases/tag/v15.0.0
10
+ This includes possible breaking changes also outside of this package, see also https://github.com/webonyx/graphql-php/releases/tag/v15.0.0\
11
+ Known breaking changes:
12
+ - non-standard error related data keys are not included directly in
13
+ ` errors.*.<non-standard error key> ` any more, but have been moved to
14
+ ` errors.*.extensions.<non-standard error key> ` .\
15
+ Also new keys may appear here from upstrean.
16
+ - The ` errors.*.extensions.category ` has been removed upstream, but we try to
17
+ keep it alive with the interface
18
+ ` \Rebing\GraphQL\Error\ProvidesErrorCategory ` as it can be a useful
19
+ discriminator on the client side in certain cases. But only the cases from
20
+ _ this_ library are preserved, e.g. categories like ` request ` , ` graphql ` or
21
+ ` internal ` are gone.
22
+ - The ` \Rebing\GraphQL\Support\OperationParams ` has added required types due to
23
+ its base class changes:
24
+ - Old: ` public function getOriginalInput($key) ` \
25
+ new: ` public function getOriginalInput(string $key) `
26
+ - Old: ` public function isReadOnly() ` \
27
+ new: ` public function isReadOnly(): bool `
28
+
29
+ Some BC may happen also if you extended code originating in graphql-php,
30
+ some examples:
31
+ - if you implement custom types, you now have to use property types for e.g.
32
+ ` $name ` or ` $description `
33
+ - If you used any ` \GraphQL\Validator\DocumentValidator ` in your code
34
+ directly, you now need use FQCN to reference them and not the shortened
35
+ string names.
36
+ - ` ->getWrappedType(true) ` was replaced with ` ->getInnermostType() `
37
+ - the class ` \GraphQL\Type\Definition\FieldArgument ` has been renamed to
38
+ ` \GraphQL\Type\Definition\Argument `
11
39
12
40
### Removed
13
41
- Remove support for eager loading (=non-lazy loading) of types\
0 commit comments