docs: fix broken links
This commit is contained in:
@@ -28,7 +28,7 @@ Example:
|
||||
```
|
||||
|
||||
::: warning
|
||||
To enable support of `gql` string tag in Vue templates, see the necessary setup in [the guide](../guide/components/query.md#tag-setup).
|
||||
To enable support of `gql` string tag in Vue templates, see the necessary setup in [the guide](../guide-components/query.md#tag-setup).
|
||||
:::
|
||||
|
||||
## Props
|
||||
|
||||
@@ -15,9 +15,9 @@ This is the Apollo manager added to any component that uses Apollo. It can be ac
|
||||
|
||||
## Methods
|
||||
|
||||
- `query`: execute a query (see [Queries](../guide/apollo/queries.md)).
|
||||
- `mutate`: execute a mutation (see [Mutations](../guide/apollo/mutations.md)).
|
||||
- `subscribe`: standard Apollo subscribe method (see [Subscriptions](../guide/apollo/subscriptions.md)).
|
||||
- `query`: execute a query (see [Queries](../guide-option/queries.md)).
|
||||
- `mutate`: execute a mutation (see [Mutations](../guide-option/mutations.md)).
|
||||
- `subscribe`: standard Apollo subscribe method (see [Subscriptions](../guide-option/subscriptions.md)).
|
||||
- `addSmartQuery`: manually add a Smart Query (not recommended).
|
||||
- `addSmartSubscription`: add a Smart Subscription (see [Subscriptions](../guide/apollo/subscriptions.md)).
|
||||
- `addSmartSubscription`: add a Smart Subscription (see [Subscriptions](../guide-option/subscriptions.md)).
|
||||
- `getClient`: returns the underlying ApolloClient.
|
||||
|
||||
@@ -17,8 +17,8 @@ Each query declared in the `apollo` definition (that is, which doesn't start wit
|
||||
- `manual` is a boolean to disable the automatic property update. If you use it, you then need to specify a `result` callback (see example below).
|
||||
- `deep` is a boolean to use `deep: true` on Vue watchers.
|
||||
- `skip` is a boolean or a (reactive) function that returns a boolean. The function gets the current component and smart query key as arguments, so it can be used in `$query` and in `ApolloProvider`'s `defaultOptions`.
|
||||
- `subscribeToMore`: an object or an array of object which are [subscribeToMore options](../guide/apollo/subscriptions.md#subscribetomore).
|
||||
- `prefetch` is either a boolean or a function to determine if the query should be prefetched. See [Server-Side Rendering](../guide/ssr.md).
|
||||
- `subscribeToMore`: an object or an array of object which are [subscribeToMore options](../guide-option/subscriptions.md#subscribetomore).
|
||||
- `prefetch` is either a boolean or a function to determine if the query should be prefetched. See [Server-Side Rendering](../guide-advanced/ssr.md).
|
||||
- You can also use any other `watchQuery` options (see [Apollo docs](https://www.apollographql.com/docs/react/api/apollo-client.html#ApolloClient.watchQuery)).
|
||||
|
||||
Example:
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
## What are Apollo components?
|
||||
|
||||
Those are components just like any others. They take a GraphQL document in their prop and use the [scoped slot feature](https://vuejs.org/v2/guide/components-slots.html#Scoped-Slots) to pass down the results.
|
||||
Those are components just like any others. They take a GraphQL document in their prop and use the [scoped slot feature](https://vuejs.org/v2/guide-components-slots.html#Scoped-Slots) to pass down the results.
|
||||
|
||||
The benefit is that you can use those components in the template directly instead of using the `apollo` option of your component. In some cases you don't even need to add a script part at all in your `.vue`! This is all even more declarative.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user