Skip to content

Commit

Permalink
Update apollo-link-schema.md (#6622)
Browse files Browse the repository at this point in the history
@apollo/client/link/schema does not work as described in the documentation (#6621),
whereas `@apollo/link-schema` does still work with Apollo Client v3.
  • Loading branch information
stolinski authored Jul 16, 2020
1 parent f5eac73 commit 218a2b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/source/api/link/apollo-link-schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The schema link provides a [graphql execution environment](http://graphql.org/gr
## Installation

`npm install @apollo/client --save`
`npm install @apollo/link-schema --save`

## Usage

Expand All @@ -21,7 +21,7 @@ When performing SSR _on the same server_, you can use this library to avoid maki

```js
import { ApolloClient, InMemoryCache } from '@apollo/client';
import { SchemaLink } from '@apollo/client/link/schema';
import { SchemaLink } from '@apollo/link-schema';

import schema from './path/to/your/schema';

Expand All @@ -38,7 +38,7 @@ For more detailed information about mocking, refer to the [graphql-tools documen

```js
import { ApolloClient, InMemoryCache } from '@apollo/client';
import { SchemaLink } from '@apollo/client/link/schema';
import { SchemaLink } from '@apollo/link-schema';
import { makeExecutableSchema, addMockFunctionsToSchema } from 'graphql-tools';

const typeDefs = `
Expand Down

1 comment on commit 218a2b4

@benjamn
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll revert this commit once we have a proper solution for #6621.

Please sign in to comment.