graphql-skip-limit
A library to help construct a graphql-js server supporting skip/relay style pagination. Built for Gatsby but perhaps useful elsewhere.
Last updated 5 years ago by sidharthachatterjee .
MIT · Repository · Bugs · Original npm
$ cnpm install graphql-skip-limit 
SYNC missed versions from official npm registry.

graphql-skip-limit

This library provides helper functions for building Relay-style connections but with skip/limit style pagination instead of Relay's cursor-based pagination.

It is built and maintained for React modern site generator Gatsby to drive its GraphQL-based data layer.

It is a port from graphql-relay so can be used in a similar fashion. See the tests in src/connection/__tests__ for an example of using this library.

Connections built with this library can be queried like the following:

{
  allFile(skip: 1, limit: 10) {
    edges {
      node {
        id
      }
    }
  }
}

In this query, we skip the first result and limit our results to 10.

Current Tags

  • 2.3.1                                ...           latest (5 years ago)
  • 2.1.7-otp-test.31                                ...           otp-test (6 years ago)

3 Versions

  • 2.1.7-otp-test.31                                ...           6 years ago
  • 2.3.1                                ...           5 years ago
  • 1.0.11                                ...           8 years ago

Copyright 2013 - present © cnpmjs.org