import type { ObjectTypeComposerArgumentConfigMapDefinition } from 'graphql-compose' ; import type { ExtendedResolveParams } from '../index' ; export function skipHelperArgs ( ) { return { skip : { type : 'Int' , } , } ; } export function skipHelper ( resolveParams ) { const skip = parseInt ( resolveParams && resolveParams . args && resolveParams . args . skip , 10 ) ; if ( skip > 0 ) { resolveParams . query = resolveParams . query . skip ( skip ) ; } }