mirror of
https://github.com/strapi/strapi.git
synced 2025-07-28 11:30:21 +00:00
20 lines
320 B
JavaScript
20 lines
320 B
JavaScript
'use strict';
|
|
|
|
const { arg, inputObjectType } = require('nexus');
|
|
|
|
const PaginationInputType = inputObjectType({
|
|
name: 'PaginationArg',
|
|
|
|
definition(t) {
|
|
t.int('page');
|
|
t.int('pageSize');
|
|
t.int('start');
|
|
t.int('limit');
|
|
},
|
|
});
|
|
|
|
module.exports = arg({
|
|
type: PaginationInputType,
|
|
default: {},
|
|
});
|