Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including graphql-skip-limit with all npm packages installed. Try it out:

require("graphql/package.json"); // graphql is a peer dependency. var graphqlSkipLimit = require("graphql-skip-limit")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

graphql-skip-limit v2.3.1

A library to help construct a graphql-js server supporting skip/relay style pagination. Built for Gatsby but perhaps useful elsewhere.


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 {

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

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free