File tree Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 11/* @flow */
22
33import { TypeComposer } from 'graphql-compose' ;
4- import { preparePaginationResolver } from './paginationResolver' ;
5-
6- export type ComposeWithPaginationOpts = {
7- findResolverName : string ,
8- countResolverName : string ,
9- perPage ?: number ,
10- } ;
4+ import { preparePaginationResolver , type ComposeWithPaginationOpts } from './paginationResolver' ;
115
126export function composeWithPagination (
137 typeComposer : TypeComposer ,
Original file line number Diff line number Diff line change 11/* @flow */
22
33import { composeWithPagination } from './composeWithPagination' ;
4+ import { preparePaginationResolver } from './paginationResolver' ;
45
56export default composeWithPagination ;
67
7- export { composeWithPagination } ;
8+ export { composeWithPagination , preparePaginationResolver } ;
89
9- export type { ComposeWithPaginationOpts } from './composeWithPagination ' ;
10+ export type { ComposeWithPaginationOpts } from './paginationResolver ' ;
Original file line number Diff line number Diff line change @@ -8,11 +8,16 @@ import type {
88 ProjectionType ,
99} from 'graphql-compose' ;
1010import type { GraphQLResolveInfo } from 'graphql-compose/lib/graphql' ;
11- import type { ComposeWithPaginationOpts } from './composeWithPagination' ;
1211import { preparePaginationTC } from './types/preparePaginationType' ;
1312
1413const DEFAULT_PER_PAGE = 20 ;
1514
15+ export type ComposeWithPaginationOpts = {
16+ findResolverName : string ,
17+ countResolverName : string ,
18+ perPage ?: number ,
19+ } ;
20+
1621export type PaginationResolveParams < TContext > = {
1722 source : any ,
1823 args : {
You can’t perform that action at this time.
0 commit comments