Skip to content

Commit

Permalink
[apollographql#11305]update offset-based doc
Browse files Browse the repository at this point in the history
  • Loading branch information
gento-ogane committed Nov 9, 2023
1 parent 402b715 commit 6395399
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/pagination/offset-based.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Apollo Client provides an `offsetLimitPagination` helper function that you can u

This example uses `offsetLimitPagination` to generate a field policy for `Query.feed`:

```js {2,8} title="index.js"
```jsx {2,8} title="main.jsx"
import { InMemoryCache } from "@apollo/client";
import { offsetLimitPagination } from "@apollo/client/utilities";

Expand Down Expand Up @@ -87,7 +87,7 @@ In [the example above](#using-with-fetchmore), the GraphQL server returns indivi

Because the `offsetLimitPagination` helper is currently defining your field policy, you combine your `read` function with the helper's result, like so:

```js {8-13} title="index.js"
```jsx {8-13} title="main.jsx"
import { InMemoryCache } from "@apollo/client";
import { offsetLimitPagination } from "@apollo/client/utilities";

Expand Down

0 comments on commit 6395399

Please sign in to comment.