This repository was archived by the owner on Jun 1, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 119
GraphQL Pagination
Ghislain B edited this page Oct 16, 2017
·
15 revisions
With cursor, the query can have 4 arguments:
-
first
: integer representing how many rows of data to get from the start of dataset -
after
: pull data starting atcursor
"x", where "x" is the last itemcursor
-
last
: integer representing how many rows of data to get from the end of dataset -
before
: pull data before acursor
"x", where "x" is the last itemcursor
For example
users (first:20, after:"YXJyYXljb25uZWN0aW9uOjM=") {
totalCount
pageInfo {
hasNextPage
endCursor
}
edges {
cursor
node {
name
gender
}
}
}
Without cursor, the query can have 3 arguments:
-
first
: integer representing how many rows of data to get from the start of dataset -
last
: integer representing how many rows of data to get from the end of dataset -
offset
: integer representing how many to skip
For example
users (first:20, offset: 10) {
totalCount
pageInfo {
hasNextPage
}
nodes {
name
gender
}
}
Contents
- Angular-Slickgrid Uncyclo
- Installation
- Styling
- Interfaces/Models
- Testing Patterns
- Column Functionalities
- Global Grid Options
- Localization
- Events
- Grid Functionalities
- Auto-Resize / Resizer Service
- Resize by Cell Content
- Composite Editor
- Context Menu
- Custom Tooltip
- Add/Delete/Update or Highlight item
- Dynamically Change Row CSS Classes
- Excel Copy Buffer
- Export to Excel
- Export to File (CSV/Txt)
- Grid State & Presets
- Grouping & Aggregators
- Row Detail
- SlickGrid Controls
- SlickGrid Plugins
- Pinning (frozen) of Columns/Rows
- Tree Data Grid
- SlickGrid & DataView objects
- Addons (controls/plugins)
- Backend Services