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: docs/source/api/link/apollo-link-remove-typename.mdx
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ minVersion: 3.8.0
6
6
7
7
## Overview
8
8
9
-
When reusing data from a query as an argument to another GraphQL operation, `__typename` fields can cause errors. To avoid this, you can use the `removeTypenameFromVariables` link to automatically remove `__typename` fields from variables in operations.
9
+
When reusing data from a query as an argument to another GraphQL operation, `__typename` fields can cause errors. To avoid this, you can use the `removeTypenameFromVariables` link to automatically remove `__typename` fields from variables in operations.
10
10
11
11
## Remove `__typename` from all variables
12
12
@@ -78,8 +78,8 @@ const client = new ApolloClient({
78
78
});
79
79
```
80
80
81
-
If you're using [directional composition](./link/introduction#directional-composition),
82
-
for example, to [send a subscription to a websocket connection](../data/subscriptions#3-split-communication-by-operation-recommended),
81
+
If you're using [directional composition](/react/api/link/introduction#directional-composition),
82
+
for example, to [send a subscription to a websocket connection](/react/data/subscriptions#3-split-communication-by-operation-recommended),
83
83
place `removeTypenameLink` before `splitLink` to remove `__typename` from variables for all operations.
description: "Function that can be triggered to execute the suspended query. After being called, `useLazyQuery` behaves just like `useQuery`. The `useLazyQuery` function returns a promise that fulfills with a query result when the query succeeds or fails."
89
-
},
90
-
{
91
-
name: "result",
92
-
type: "QueryResult<TData, TVariables>",
93
-
description: "The result of the query. See the `useQuery` hook for more details.",
Function that can be triggered to execute the suspended query. After being called, `useLazyQuery` behaves just like `useQuery`. The `useLazyQuery` function returns a promise that fulfills with a query result when the query succeeds or fails.
Afunction used to imperatively load a query. Calling this function will create or update the `queryRef` returned by `useLoadableQuery`, which should be passed to `useReadQuery`.
Copy file name to clipboardExpand all lines: docs/source/caching/cache-configuration.mdx
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -198,7 +198,7 @@ This example shows a variety of `typePolicies` with different `keyFields`:
198
198
199
199
If an object has multiple `keyFields`, the cache ID always lists those fields in the same order to ensure uniqueness.
200
200
201
-
Note that these `keyFields` strings always refer to the canonical field names defined in the schema. This means that ID computation is _not_ sensitive to [field aliases](/resources/graphql-glossary/#alias).
201
+
Note that these `keyFields` strings always refer to the canonical field names defined in the schema. This means that ID computation is _not_ sensitive to field aliases.
Copy file name to clipboardExpand all lines: docs/source/data/operation-best-practices.mdx
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ You should define a name for _every_ GraphQL operation in your application. Doin
32
32
* You clarify the purpose of each operation for both yourself and your teammates.
33
33
* You avoid unexpected errors when combining multiple operations in a single query document (an anonymous operation can only appear alone).
34
34
* You improve debugging output in both client _and_ server code, helping you identify exactly which operation is causing issues.
35
-
*[Apollo Studio](/studio/) provides helpful operation-level metrics, which require named operations.
35
+
*[Apollo GraphOS Studio](/graphos/graphs/studio-features) provides helpful operation-level metrics, which require named operations.
36
36
37
37
## Use GraphQL variables to provide arguments
38
38
@@ -94,7 +94,7 @@ The server-side cache also powers features like [automatic persisted queries](/a
94
94
95
95
The value of a GraphQL argument might include sensitive information, such as an access token or a user's personal info. If this information is included in a query string, it's cached with the rest of that query string.
96
96
97
-
Variable values are _not_ included in query strings. You can also specify _which_ variable values (if any) are [included in metrics reporting](/apollo-server/api/plugin/usage-reporting/#sendvariablevalues) to Apollo Studio.
97
+
Variable values are _not_ included in query strings. You can also specify _which_ variable values (if any) are [included in metrics reporting](/apollo-server/api/plugin/usage-reporting/#sendvariablevalues) to Studio.
98
98
99
99
## Query only the data you need, where you need it
100
100
@@ -193,7 +193,7 @@ To improve the performance of your [server-side response cache](/apollo-server/p
193
193
194
194
## Set your app's `name` and `version` for metrics reporting (paid)
195
195
196
-
> This recommendation is _most_ pertinent to Apollo Studio organizations with a [paid plan](https://www.apollographql.com/pricing/), however it can be helpful for all apps.
196
+
> This recommendation is _most_ pertinent to Studio organizations with a [paid plan](https://www.apollographql.com/pricing/), however it can be helpful for all apps.
197
197
198
198
The constructor of `ApolloClient` accepts the `name` and `version` options:
199
199
@@ -208,4 +208,4 @@ const client = new ApolloClient({
208
208
209
209
If you specify these values, Apollo Client automatically adds them to each operation request as HTTP headers (`apollographql-client-name` and `apollographql-client-version`).
210
210
211
-
Then if you've configured [metrics reporting in Apollo Studio](/graphos/metrics/usage-reporting/), Apollo Server includes your app's `name` and `version` in the operation traces it reports to Studio. This enables you to [segment metrics by client](/graphos/metrics/client-awareness/).
211
+
Then if you've configured metrics reporting in Studio, Apollo Server includes your app's `name` and `version` in the operation traces it reports to Studio. This enables you to [segment metrics by client](/graphos/metrics/client-awareness/).
Copy file name to clipboardExpand all lines: docs/source/index.mdx
+13-13Lines changed: 13 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ Apollo Client helps you structure code in an economical, predictable, and declar
9
9
<p>
10
10
<ButtonLink
11
11
size="lg"
12
-
href="./get-started/"
12
+
href="/react/get-started/"
13
13
colorScheme="navy"
14
14
>
15
15
Get started!
@@ -44,29 +44,29 @@ Apollo Client also supports `@defer` and GraphQL subscription implementations ou
44
44
45
45
## Recommended docs
46
46
47
-
After you [get started](./get-started/), check out the full Apollo Client documentation in the navigation on the left.
47
+
After you [get started](/react/get-started/), check out the full Apollo Client documentation in the navigation on the left.
48
48
49
49
We recommend the following articles in particular:
50
50
51
-
***[Queries](./data/queries/) and [Mutations](./data/mutations/)**. These are the read and write operations of GraphQL.
52
-
*[**Caching overview**](./caching/overview/). Apollo Client's normalized cache enables you to skip network requests entirely when data is already available locally.
53
-
*[**Managing local state**](./local-state/local-state-management/). Apollo Client provides APIs for managing both remote and local data, enabling you to consolidate all of your application's state.
54
-
*[**Basic HTTP networking**](./networking/basic-http-networking/). Learn how to send custom headers and other authentication metadata in your queries.
55
-
*[**Testing React components**](./development-testing/testing/). Test your GraphQL operations without requiring a connection to a server.
51
+
***[Queries](/react/data/queries/) and [Mutations](/react/data/mutations/)**. These are the read and write operations of GraphQL.
52
+
*[**Caching overview**](/react/caching/overview/). Apollo Client's normalized cache enables you to skip network requests entirely when data is already available locally.
53
+
*[**Managing local state**](/react/local-state/local-state-management/). Apollo Client provides APIs for managing both remote and local data, enabling you to consolidate all of your application's state.
54
+
*[**Basic HTTP networking**](/react/networking/basic-http-networking/). Learn how to send custom headers and other authentication metadata in your queries.
55
+
*[**Testing React components**](/react/development-testing/testing/). Test your GraphQL operations without requiring a connection to a server.
56
56
57
57
## Community integrations
58
58
59
59
This documentation set focuses on React, but Apollo Client supports many other libraries and languages:
0 commit comments