Nihil Prius Modulus

    graphql-skip-limit

    2.3.1 • Public • Published

    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.

    Install

    npm i graphql-skip-limit

    DownloadsWeekly Downloads

    2,691

    Version

    2.3.1

    License

    MIT

    Unpacked Size

    38.2 kB

    Total Files

    17

    Last publish

    Collaborators

    • kathmbeck
    • j0sh77
    • dschau
    • kylemathews
    • pieh
    • wardpeet
    • tylerbarnes
    • fk
    • smthomas
    • lekoarts
    • rachelbahl
    • daniellewgatsby
    • freiksenet
    • monastic.panic
    • m-allanson
    • sidharthachatterjee
    • moocar