Skip to content

Commit

Permalink
Document typo fix in network layer section (#3804)
Browse files Browse the repository at this point in the history
* Fix typo.
* Another typo fix.
* Changelog update
  • Loading branch information
toolness authored and hwillson committed Aug 11, 2018
1 parent 0f62755 commit bcb9d04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
`ApolloClient.readFragment`, that when set to `true`, will allow
optimistic results to be returned. Is `false` by default. <br/>
[@jay1337](https://github.com/jay1337) in [#2429](https://github.com/apollographql/apollo-client/pull/2429)
- Documentation updates. <br/>
[@toolness](https://github.com/toolness) in [#3804](https://github.com/apollographql/apollo-client/pull/3804)

### Apollo Cache In-Memory (vNext)

Expand Down
4 changes: 2 additions & 2 deletions docs/source/advanced/network-layer.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ title: Network layer (Apollo Link)
order: 110
description: How to configure Apollo Client's network layer.
---
Now that you have learned how to read and update your data, its helpful to know how to direct where your data comes from and where it goes! Apollo has a powerful way to manage your network layer using a library called [Apollo Link](/docs/link);
Now that you have learned how to read and update your data, its helpful to know how to direct where your data comes from and where it goes! Apollo has a powerful way to manage your network layer using a library called [Apollo Link](/docs/link).

<h2 id="network-interfaces">Apollo Link</h2>

Apollo Client has a pluggable network interface layer, which can let you configure how queries are sent over HTTP, or replace the whole network part with something completely custom, like a websocket transport, mocked server data, or anything else you can imagine.

<h3 title="Using a link">Using a link</h3>

To create a link to use with Apollo Client, you can install and import one from npm or create your own. We recommend using `apollo-link-http` for most setups!.
To create a link to use with Apollo Client, you can install and import one from npm or create your own. We recommend using `apollo-link-http` for most setups.

Here's how you would instantiate a new client with a custom endpoint URL using the HttpLink:

Expand Down

0 comments on commit bcb9d04

Please sign in to comment.