@@ -16,15 +16,15 @@ build time.
16
16
17
17
To create a `GraphQlClient` you need one of the following extensions:
18
18
19
- - xref:includes/ client.adoc#client.httpgraphqlclient[HttpGraphQlClient]
20
- - xref:includes/ client.adoc#client.websocketgraphqlclient[WebSocketGraphQlClient]
21
- - xref:includes/ client.adoc#client.rsocketgraphqlclient[RSocketGraphQlClient]
19
+ - xref:client.adoc#client.httpgraphqlclient[HttpGraphQlClient]
20
+ - xref:client.adoc#client.websocketgraphqlclient[WebSocketGraphQlClient]
21
+ - xref:client.adoc#client.rsocketgraphqlclient[RSocketGraphQlClient]
22
22
23
23
Each defines a `Builder` with options relevant to the transport. All builders extend
24
- from a common, base GraphQlClient xref:includes/ client.adoc#client.graphqlclient.builder[`Builder`] with options
24
+ from a common, base GraphQlClient xref:client.adoc#client.graphqlclient.builder[`Builder`] with options
25
25
relevant to all extensions.
26
26
27
- Once you have a `GraphQlClient` you can begin to make xref:includes/ client.adoc#client.requests[requests].
27
+ Once you have a `GraphQlClient` you can begin to make xref:client.adoc#client.requests[requests].
28
28
29
29
30
30
[[client.httpgraphqlclient]]
@@ -41,7 +41,7 @@ HttpGraphQlClient graphQlClient = HttpGraphQlClient.create(webClient);
41
41
----
42
42
43
43
Once `HttpGraphQlClient` is created, you can begin to
44
- xref:includes/ client.adoc#client.requests[execute requests] using the same API, independent of the underlying
44
+ xref:client.adoc#client.requests[execute requests] using the same API, independent of the underlying
45
45
transport. If you need to change any transport specific details, use `mutate()` on an
46
46
existing `HttpGraphQlClient` to create a new instance with customized settings:
47
47
@@ -97,7 +97,7 @@ single, shared connection for all requests to that server. Each client instance
97
97
establishes its own connection and that is typically not the intent for a single server.
98
98
99
99
Once `WebSocketGraphQlClient` is created, you can begin to
100
- xref:includes/ client.adoc#client.requests[execute requests] using the same API, independent of the underlying
100
+ xref:client.adoc#client.requests[execute requests] using the same API, independent of the underlying
101
101
transport. If you need to change any transport specific details, use `mutate()` on an
102
102
existing `WebSocketGraphQlClient` to create a new instance with customized settings:
103
103
@@ -149,7 +149,7 @@ For WebSocket transport specific interception, you can create a
149
149
}
150
150
----
151
151
152
- xref:includes/ client.adoc#client.interception[Register] the above interceptor as any other
152
+ xref:client.adoc#client.interception[Register] the above interceptor as any other
153
153
`GraphQlClientInterceptor` and use it also to intercept GraphQL requests, but note there
154
154
can be at most one interceptor of type `WebSocketGraphQlClientInterceptor`.
155
155
@@ -187,7 +187,7 @@ single, shared session for all requests to that server. Each client instance
187
187
establishes its own connection and that is typically not the intent for a single server.
188
188
189
189
Once `RSocketGraphQlClient` is created, you can begin to
190
- xref:includes/ client.adoc#client.requests[execute requests] using the same API, independent of the underlying
190
+ xref:client.adoc#client.requests[execute requests] using the same API, independent of the underlying
191
191
transport.
192
192
193
193
@@ -199,16 +199,16 @@ transport.
199
199
builders of all extensions. Currently, it has lets you configure:
200
200
201
201
- `DocumentSource` strategy to load the document for a request from a file
202
- - xref:includes/ client.adoc#client.interception[Interception] of executed requests
202
+ - xref:client.adoc#client.interception[Interception] of executed requests
203
203
204
204
205
205
206
206
207
207
[[client.requests]]
208
208
== Requests
209
209
210
- Once you have a xref:includes/ client.adoc#client.graphqlclient[`GraphQlClient`], you can begin to perform requests via
211
- xref:includes/ client.adoc#client.requests.retrieve[retrieve()] or xref:includes/ client.adoc#client.requests.execute[execute()]
210
+ Once you have a xref:client.adoc#client.graphqlclient[`GraphQlClient`], you can begin to perform requests via
211
+ xref:client.adoc#client.requests.retrieve[retrieve()] or xref:client.adoc#client.requests.execute[execute()]
212
212
where the former is only a shortcut for the latter.
213
213
214
214
@@ -239,7 +239,7 @@ The below retrieves and decodes the data for a query:
239
239
240
240
The input document is a `String` that could be a literal or produced through a code
241
241
generated request object. You can also define documents in files and use a
242
- xref:includes/ client.adoc#client.requests.document-source[Document Source] to resole them by file name.
242
+ xref:client.adoc#client.requests.document-source[Document Source] to resole them by file name.
243
243
244
244
The path is relative to the "data" key and uses a simple dot (".") separated notation
245
245
for nested fields with optional array indices for list elements, e.g. `"project.name"`
@@ -267,7 +267,7 @@ response and the field:
267
267
[[client.requests.execute]]
268
268
=== Execute
269
269
270
- xref:includes/ client.adoc#client.requests.retrieve[Retrieve] is only a shortcut to decode from a single path in the
270
+ xref:client.adoc#client.requests.retrieve[Retrieve] is only a shortcut to decode from a single path in the
271
271
response map. For more control, use the `execute` method and handle the response:
272
272
273
273
For example:
@@ -341,7 +341,7 @@ You can then:
341
341
342
342
The "JS GraphQL" plugin for IntelliJ supports GraphQL query files with code completion.
343
343
344
- You can use the `GraphQlClient` xref:includes/ client.adoc#client.graphqlclient.builder[Builder] to customize the
344
+ You can use the `GraphQlClient` xref:client.adoc#client.graphqlclient.builder[Builder] to customize the
345
345
`DocumentSource` for loading documents by names.
346
346
347
347
@@ -352,16 +352,16 @@ You can use the `GraphQlClient` xref:includes/client.adoc#client.graphqlclient.b
352
352
353
353
`GraphQlClient` can execute subscriptions over transports that support it. Only
354
354
the WebSocket and RSocket transports support GraphQL subscriptions, so you'll need to
355
- create a xref:includes/ client.adoc#client.websocketgraphqlclient[WebSocketGraphQlClient] or
356
- xref:includes/ client.adoc#client.rsocketgraphqlclient[RSocketGraphQlClient].
355
+ create a xref:client.adoc#client.websocketgraphqlclient[WebSocketGraphQlClient] or
356
+ xref:client.adoc#client.rsocketgraphqlclient[RSocketGraphQlClient].
357
357
358
358
359
359
360
360
[[client.subscriptions.retrieve]]
361
361
=== Retrieve
362
362
363
363
To start a subscription stream, use `retrieveSubscription` which is similar to
364
- xref:includes/ client.adoc#client.requests.retrieve[retrieve] for a single response but returning a stream of
364
+ xref:client.adoc#client.requests.retrieve[retrieve] for a single response but returning a stream of
365
365
responses, each decoded to some data:
366
366
367
367
[source,java,indent=0,subs="verbatim,quotes"]
@@ -390,7 +390,7 @@ provides access to the `Subscription`.
390
390
[[client.subscriptions.execute]]
391
391
=== Execute
392
392
393
- xref:includes/ client.adoc#client.subscriptions.retrieve[Retrieve] is only a shortcut to decode from a single path in each
393
+ xref:client.adoc#client.subscriptions.retrieve[Retrieve] is only a shortcut to decode from a single path in each
394
394
response map. For more control, use the `executeSubscription` method and handle each
395
395
response directly:
396
396
0 commit comments