From 169d6b39bb7b6f38fffcff40e9af3ffcdd002d97 Mon Sep 17 00:00:00 2001 From: Guillaume Chau Date: Mon, 2 Dec 2019 04:15:48 +0100 Subject: [PATCH] docs: fix broken links --- packages/docs/src/api/apollo-query.md | 2 +- packages/docs/src/api/dollar-apollo.md | 8 ++++---- packages/docs/src/api/smart-query.md | 4 ++-- packages/docs/src/guide-components/README.md | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/docs/src/api/apollo-query.md b/packages/docs/src/api/apollo-query.md index b1fa7eb..cdca12f 100644 --- a/packages/docs/src/api/apollo-query.md +++ b/packages/docs/src/api/apollo-query.md @@ -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 diff --git a/packages/docs/src/api/dollar-apollo.md b/packages/docs/src/api/dollar-apollo.md index d50aaac..d5f8828 100644 --- a/packages/docs/src/api/dollar-apollo.md +++ b/packages/docs/src/api/dollar-apollo.md @@ -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. diff --git a/packages/docs/src/api/smart-query.md b/packages/docs/src/api/smart-query.md index c59c2ed..0b7657e 100644 --- a/packages/docs/src/api/smart-query.md +++ b/packages/docs/src/api/smart-query.md @@ -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: diff --git a/packages/docs/src/guide-components/README.md b/packages/docs/src/guide-components/README.md index 6ef98e1..1a911ab 100644 --- a/packages/docs/src/guide-components/README.md +++ b/packages/docs/src/guide-components/README.md @@ -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.