Skip to content

Commit 915cb12

Browse files
committed
Fix broken Spring GraphQL links
Closes gh-42207
1 parent bee3158 commit 915cb12

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/testing.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -484,14 +484,14 @@ Spring GraphQL offers a dedicated testing support module; you'll need to add it
484484
}
485485
----
486486

487-
This testing module ships the {spring-graphql-docs}/#testing-graphqltester[GraphQlTester].
487+
This testing module ships the {spring-graphql-docs}/testing.html#testing.graphqltester[GraphQlTester].
488488
The tester is heavily used in test, so be sure to become familiar with using it.
489489
There are `GraphQlTester` variants and Spring Boot will auto-configure them depending on the type of tests:
490490

491491
* the `ExecutionGraphQlServiceTester` performs tests on the server side, without a client nor a transport
492492
* the `HttpGraphQlTester` performs tests with a client that connects to a server, with or without a live server
493493

494-
Spring Boot helps you to test your {spring-graphql-docs}/#controllers[Spring GraphQL Controllers] with the `@GraphQlTest` annotation.
494+
Spring Boot helps you to test your {spring-graphql-docs}/controllers.html[Spring GraphQL Controllers] with the `@GraphQlTest` annotation.
495495
`@GraphQlTest` auto-configures the Spring GraphQL infrastructure, without any transport nor server being involved.
496496
This limits scanned beans to `@Controller`, `RuntimeWiringConfigurer`, `JsonComponent`, `Converter`, `GenericConverter`, `DataFetcherExceptionResolver`, `Instrumentation` and `GraphQlSourceBuilderCustomizer`.
497497
Regular `@Component` and `@ConfigurationProperties` beans are not scanned when the `@GraphQlTest` annotation is used.

spring-boot-project/spring-boot-docs/src/docs/asciidoc/web/spring-graphql.adoc

+5-5
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ If you wish to not expose information about the schema, you can disable introspe
5454
=== GraphQL RuntimeWiring
5555
The GraphQL Java `RuntimeWiring.Builder` can be used to register custom scalar types, directives, type resolvers, `DataFetcher`, and more.
5656
You can declare `RuntimeWiringConfigurer` beans in your Spring config to get access to the `RuntimeWiring.Builder`.
57-
Spring Boot detects such beans and adds them to the {spring-graphql-docs}/#execution-graphqlsource[GraphQlSource builder].
57+
Spring Boot detects such beans and adds them to the {spring-graphql-docs}/request-execution.html#execution.graphqlsource[GraphQlSource builder].
5858

59-
Typically, however, applications will not implement `DataFetcher` directly and will instead create {spring-graphql-docs}/#controllers[annotated controllers].
59+
Typically, however, applications will not implement `DataFetcher` directly and will instead create {spring-graphql-docs}/controllers.html[annotated controllers].
6060
Spring Boot will automatically detect `@Controller` classes with annotated handler methods and register those as ``DataFetcher``s.
6161
Here's a sample implementation for our greeting query with a `@Controller` class:
6262

@@ -67,7 +67,7 @@ include::code:GreetingController[]
6767
[[web.graphql.data-query]]
6868
=== Querydsl and QueryByExample Repositories Support
6969
Spring Data offers support for both Querydsl and QueryByExample repositories.
70-
Spring GraphQL can {spring-graphql-docs}/#data[configure Querydsl and QueryByExample repositories as `DataFetcher`].
70+
Spring GraphQL can {spring-graphql-docs}/data.html[configure Querydsl and QueryByExample repositories as `DataFetcher`].
7171

7272
Spring Data repositories annotated with `@GraphQlRepository` and extending one of:
7373

@@ -98,7 +98,7 @@ The GraphQL WebSocket endpoint is off by default. To enable it:
9898
* For a WebFlux application, no additional dependency is required
9999
* For both, the configprop:spring.graphql.websocket.path[] application property must be set
100100

101-
Spring GraphQL provides a {spring-graphql-docs}/#web-interception[Web Interception] model.
101+
Spring GraphQL provides a {spring-graphql-docs}/transports.html#server.interception[Web Interception] model.
102102
This is quite useful for retrieving information from an HTTP request header and set it in the GraphQL context or fetching information from the same context and writing it to a response header.
103103
With Spring Boot, you can declare a `WebInterceptor` bean to have it registered with the web transport.
104104

@@ -138,7 +138,7 @@ include::code:RSocketGraphQlClientExample[tag=request]
138138
[[web.graphql.exception-handling]]
139139
=== Exception Handling
140140
Spring GraphQL enables applications to register one or more Spring `DataFetcherExceptionResolver` components that are invoked sequentially.
141-
The Exception must be resolved to a list of `graphql.GraphQLError` objects, see {spring-graphql-docs}/#execution-exceptions[Spring GraphQL exception handling documentation].
141+
The Exception must be resolved to a list of `graphql.GraphQLError` objects, see {spring-graphql-docs}/controllers.html#controllers.exception-handler[Spring GraphQL exception handling documentation].
142142
Spring Boot will automatically detect `DataFetcherExceptionResolver` beans and register them with the `GraphQlSource.Builder`.
143143

144144

0 commit comments

Comments
 (0)