Skip to content

Commit

Permalink
chore(client): fix link and add clarification about getDocuments
Browse files Browse the repository at this point in the history
  • Loading branch information
kmelve authored and bjoerge committed Apr 8, 2021
1 parent c0f29fa commit 6c57bfd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@sanity/client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Likewise, you can also have the client return the document _before_ the mutation

### Fetch a single document

This will fetch a document from the [DOC endpoint](https://www.sanity.io/docs/http-query#the-doc-endpoint). Should be used sparingly and performing a query is usually a better option.
This will fetch a document from the [Doc endpoint](https://www.sanity.io/docs/http-doc). This endpoint cuts through any caching/indexing middleware that may involve delayed processing. Should be used sparingly and performing a query is usually a better option.

```js
client.getDocument('bike-123').then((bike) => {
Expand All @@ -98,7 +98,7 @@ client.getDocument('bike-123').then((bike) => {

### Fetch multiple documents in one go

This will fetch multiple documents in one request from the [DOC endpoint](https://www.sanity.io/docs/http-query#the-doc-endpoint). Should be used sparingly and performing a query is usually a better option.
This will fetch multiple documents in one request from the [Doc endpoint](https://www.sanity.io/docs/http-doc). his endpoint cuts through any caching/indexing middleware that may involve delayed processing. Should be used sparingly and performing a query is usually a better option.

```js
client.getDocuments(['bike123', 'bike345']).then(([bike123, bike345]) => {
Expand Down

0 comments on commit 6c57bfd

Please sign in to comment.