You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,26 @@ CHANGELOG
5
5
--------------
6
6
7
7
## Breaking changes
8
+
- Rewrite and simplify how schemas are handled
9
+
-`\Rebing\GraphQL\GraphQL::$schemas` now only holds `Schema`s and not a
10
+
mixture of strings or arrays
11
+
-`\Rebing\GraphQL\GraphQL::schema()` now only accepts a "schema name", but no
12
+
ad hoc `Schema` or "schema configs". To use ad hoc schemas, use
13
+
`\Rebing\GraphQL\GraphQL::buildSchemaFromConfig()` and
14
+
`\Rebing\GraphQL\GraphQL::addSchema()`
15
+
-`\Rebing\GraphQL\GraphQL::queryAndReturnResult()` (and thus also
16
+
`\Rebing\GraphQL\GraphQL::query()`) does not accept ad hoc schemas via
17
+
`$opts['schema']` anymore; it now only can reference a schema via its name.
18
+
-`\Rebing\GraphQL\GraphQL::addSchema()` now only accept `Schema` objects,
19
+
where before it would support ad hoc schemas via array configuration.
20
+
Use `\Rebing\GraphQL\GraphQL::buildSchemaFromConfig()` for that now.
21
+
-`\Rebing\GraphQL\GraphQL::getSchemaConfiguration()` has been removed due to
22
+
the simplifications.
23
+
-`\Rebing\GraphQL\GraphQL::getNormalizedSchemaConfiguration()` does not
24
+
support ad hoc schemas anymore and only accepts the schema name.
25
+
-`\Rebing\GraphQL\GraphQLServiceProvider::bootSchemas()` has been removed due
26
+
to the simplifications.
27
+
8
28
- The following methods now take a `\Illuminate\Contracts\Config\Repository` as
9
29
second argument:
10
30
-`\Rebing\GraphQL\GraphQL::__construct`
@@ -98,6 +118,7 @@ CHANGELOG
98
118
- Laravels `ValidationException` is now formatted the same way as a `ValidationError`[\#748 / mfn](https://github.com/rebing/graphql-laravel/pull/748)
99
119
100
120
### Changed
121
+
- Rewrite and simplify how schemas are handled [\#779 / mfn](https://github.com/rebing/graphql-laravel/pull/779)
101
122
- Internally stop using the global `config()` function and preferable use the repository or the Facade otherwise [\#774 / mfn](https://github.com/rebing/graphql-laravel/pull/774)
102
123
- Don't silence broken schemas when normalizing them for generating routes [\#766 / mfn](https://github.com/rebing/graphql-laravel/pull/766)
103
124
- Lazy loading types has been enabled by default [\#758 / mfn](https://github.com/rebing/graphql-laravel/pull/758)
Copy file name to clipboardExpand all lines: phpstan-baseline.neon
-25Lines changed: 0 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,5 @@
1
1
parameters:
2
2
ignoreErrors:
3
-
-
4
-
message:"#^Method Rebing\\\\GraphQL\\\\GraphQL\\:\\:addSchema\\(\\) has parameter \\$schema with no value type specified in iterable type array\\.$#"
5
-
count:1
6
-
path:src/GraphQL.php
7
-
8
3
-
9
4
message:"#^Method Rebing\\\\GraphQL\\\\GraphQL\\:\\:addTypes\\(\\) has parameter \\$types with no value type specified in iterable type array\\.$#"
10
5
count:1
@@ -30,36 +25,16 @@ parameters:
30
25
count:1
31
26
path:src/GraphQL.php
32
27
33
-
-
34
-
message:"#^Method Rebing\\\\GraphQL\\\\GraphQL\\:\\:getSchemaConfiguration\\(\\) has parameter \\$schema with no value type specified in iterable type array\\.$#"
35
-
count:1
36
-
path:src/GraphQL.php
37
-
38
-
-
39
-
message:"#^Method Rebing\\\\GraphQL\\\\GraphQL\\:\\:getSchemaConfiguration\\(\\) return type has no value type specified in iterable type array\\.$#"
40
-
count:1
41
-
path:src/GraphQL.php
42
-
43
28
-
44
29
message:"#^Method Rebing\\\\GraphQL\\\\GraphQL\\:\\:getSchemas\\(\\) return type has no value type specified in iterable type array\\.$#"
45
30
count:1
46
31
path:src/GraphQL.php
47
32
48
-
-
49
-
message:"#^Method Rebing\\\\GraphQL\\\\GraphQL\\:\\:mergeSchemas\\(\\) has parameter \\$schema with no value type specified in iterable type array\\.$#"
50
-
count:1
51
-
path:src/GraphQL.php
52
-
53
33
-
54
34
message:"#^Method Rebing\\\\GraphQL\\\\GraphQL\\:\\:objectType\\(\\) has parameter \\$type with no value type specified in iterable type array\\.$#"
55
35
count:1
56
36
path:src/GraphQL.php
57
37
58
-
-
59
-
message:"#^Method Rebing\\\\GraphQL\\\\GraphQL\\:\\:schema\\(\\) has parameter \\$schema with no value type specified in iterable type array\\.$#"
60
-
count:1
61
-
path:src/GraphQL.php
62
-
63
38
-
64
39
message:"#^Access to an undefined property GraphQL\\\\Type\\\\Definition\\\\InputObjectField\\|stdClass\\:\\:\\$alias\\.$#"
0 commit comments