Skip to content

Commit 3064004

Browse files
committed
Fix links to schema configuration docs
Resolves #1076 Thanks @MA7
1 parent ceb6e94 commit 3064004

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

examples/00-hello-world/graphql.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
]);
5050

5151
// See docs on schema options:
52-
// https://webonyx.github.io/graphql-php/type-system/schema/#configuration-options
52+
// https://webonyx.github.io/graphql-php/schema-definition/#configuration-options
5353
$schema = new Schema([
5454
'query' => $queryType,
5555
'mutation' => $mutationType,

examples/01-blog/graphql.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
DataSource::init();
2222

2323
// See docs on schema options:
24-
// https://webonyx.github.io/graphql-php/type-system/schema/#configuration-options
24+
// https://webonyx.github.io/graphql-php/schema-definition/#configuration-options
2525
$schema = new Schema([
2626
'query' => new QueryType(),
2727
'typeLoader' => static fn (string $name): Type => Types::byTypeName($name),

examples/03-standard-server/graphql.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
]);
5050

5151
// See docs on schema options:
52-
// https://webonyx.github.io/graphql-php/type-system/schema/#configuration-options
52+
// https://webonyx.github.io/graphql-php/schema-definition/#configuration-options
5353
$schema = new Schema([
5454
'query' => $queryType,
5555
'mutation' => $mutationType,

src/Executor/ReferenceExecutor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1383,7 +1383,7 @@ protected function ensureValidRuntimeType(
13831383

13841384
if ($this->exeContext->schema->getType($runtimeType->name) === null) {
13851385
throw new InvariantViolation(
1386-
"Schema does not contain type \"{$runtimeType}\". This can happen when an object type is only referenced indirectly through abstract types and never directly through fields.List the type in the option \"types\" during schema construction, see https://webonyx.github.io/graphql-php/type-system/schema/#configuration-options."
1386+
"Schema does not contain type \"{$runtimeType}\". This can happen when an object type is only referenced indirectly through abstract types and never directly through fields.List the type in the option \"types\" during schema construction, see https://webonyx.github.io/graphql-php/schema-definition/#configuration-options."
13871387
);
13881388
}
13891389

tests/Executor/AbstractTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ public function testWarnsAboutOrphanedTypesWhenMissingType(): void
490490
. 'This can happen when an object type is only referenced indirectly through '
491491
. 'abstract types and never directly through fields.'
492492
. 'List the type in the option "types" during schema construction, '
493-
. 'see https://webonyx.github.io/graphql-php/type-system/schema/#configuration-options.',
493+
. 'see https://webonyx.github.io/graphql-php/schema-definition/#configuration-options.',
494494
],
495495
],
496496
],

0 commit comments

Comments
 (0)