@@ -140,8 +140,8 @@ Consider polyfilling:
140
140
- [ type FetchOptions] ( #type-fetchoptions )
141
141
- [ type FetchOptionsOverride] ( #type-fetchoptionsoverride )
142
142
- [ Examples] ( #examples-8 )
143
+ - [ type GraphQLOperation] ( #type-graphqloperation )
143
144
- [ type HttpError] ( #type-httperror )
144
- - [ type Operation] ( #type-operation )
145
145
- [ type QueryRender] ( #type-queryrender )
146
146
- [ Examples] ( #examples-9 )
147
147
- [ type RequestCache] ( #type-requestcache )
@@ -172,7 +172,7 @@ Queries a GraphQL server.
172
172
| Parameter | Type | Description |
173
173
| :----------------------------- | :-------------------------------------------------- | :--------------------------------------------------------------------------------------- |
174
174
| ` options` | [Object](https://mdn.io/object) | Options. |
175
- | ` options .operation ` | [Operation ](#type-operation ) | GraphQL operation object. |
175
+ | ` options .operation ` | [GraphQLOperation ](#type-graphqloperation ) | GraphQL operation. |
176
176
| ` options .fetchOptionsOverride ` | [FetchOptionsOverride](#type-fetchoptionsoverride)? | Overrides default GraphQL request [fetch options](#type-fetchoptions). |
177
177
| ` options .resetOnLoad ` | [boolean](https://mdn.io/boolean)? = ` false ` | Should the [GraphQL cache](#graphql-instance-property-cache) reset when the query loads. |
178
178
@@ -446,10 +446,10 @@ Overrides default GraphQL request [fetch options](#type-fetchoptions). Modify th
446
446
447
447
**Type:** [function](https://mdn.io/function)
448
448
449
- | Parameter | Type | Description |
450
- | :------------- | :--------------------------------- | :------------------------------------- |
451
- | ` fetchOptions` | [FetchOptions](#type-fetchoptions) | Default GraphQL request fetch options. |
452
- | ` operation` | [Operation ](#type-operation )? | A GraphQL operation object. |
449
+ | Parameter | Type | Description |
450
+ | :------------- | :------------------------------------------ | :------------------------------------- |
451
+ | ` fetchOptions` | [FetchOptions](#type-fetchoptions) | Default GraphQL request fetch options. |
452
+ | ` operation` | [GraphQLOperation ](#type-graphqloperation )? | GraphQL operation. |
453
453
454
454
#### Examples
455
455
@@ -462,6 +462,17 @@ _Setting [fetch options](#type-fetchoptions) for an example API._
462
462
> }
463
463
> ` ` `
464
464
465
+ ### type GraphQLOperation
466
+
467
+ A GraphQL operation. Additional properties may be used; all are sent to the GraphQL server.
468
+
469
+ **Type:** [Object](https://mdn.io/object)
470
+
471
+ | Property | Type | Description |
472
+ | :---------- | :------------------------------ | :---------------------------- |
473
+ | ` query` | [string](https://mdn.io/string) | GraphQL queries or mutations. |
474
+ | ` variables` | [Object](https://mdn.io/object) | Variables used by the query. |
475
+
465
476
### type HttpError
466
477
467
478
Fetch HTTP error.
@@ -473,17 +484,6 @@ Fetch HTTP error.
473
484
| ` status` | [number](https://mdn.io/number) | HTTP status code. |
474
485
| ` statusText` | [string](https://mdn.io/string) | HTTP status text. |
475
486
476
- ### type Operation
477
-
478
- A GraphQL operation object. Additional properties may be used; all are sent to the GraphQL server.
479
-
480
- **Type:** [Object](https://mdn.io/object)
481
-
482
- | Property | Type | Description |
483
- | :---------- | :------------------------------ | :---------------------------- |
484
- | ` query` | [string](https://mdn.io/string) | GraphQL queries or mutations. |
485
- | ` variables` | [Object](https://mdn.io/object) | Variables used by the query. |
486
-
487
487
### type QueryRender
488
488
489
489
Renders the status of a query or mutation.
0 commit comments