UNPKG
graphql-mocks
Version:
latest (0.11.4)
0.11.4
0.11.3
0.11.2
0.11.1
0.11.0
0.10.0
0.9.2
0.9.1
0.9.0
0.8.4
0.8.3
0.8.2
0.8.1
0.8.0
0.7.2
0.7.1
0.7.0
0.6.0
0.5.2
0.5.1
0.4.2
0.4.1
0.4.0
0.3.0
0.2.0
Tools for setting up graphql test resolvers
graphql-mocks/graphql-mocks
graphql-mocks
/
es
/
relay
/
paginate-nodes.d.ts
9 lines
(8 loc)
•
303 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
import
{
CursorForNode
,
RelayPaginationResult
}
from
'./types'
;
export
declare
function
paginateNodes<T =
unknown
>(
nodes
: T[],
args
: { [
key
:
string
]:
unknown
;
first
?:
number
;
last
?:
number
;
before
?:
string
;
after
?:
string
; },
cursorForNode
:
CursorForNode
<T>):
RelayPaginationResult
;