UNPKG

relay-cursor-paging

Version:

Relay Cursor-Based Pagination Support for Sequelize

16 lines (15 loc) 544 B
var _a = require("graphql"), GraphQLInt = _a.GraphQLInt, GraphQLString = _a.GraphQLString; var _ = require("lodash"); function pageable(args) { if (args === void 0) { args = {}; } return _.extend({}, args, { // Forward Paging Arguments after: { type: GraphQLString }, first: { type: GraphQLInt }, // Backward Paging Arguments before: { type: GraphQLString }, last: { type: GraphQLInt }, }); } Object.defineProperty(exports, "__esModule", { value: true }); exports.default = pageable;