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 1
1
/* @flow */
2
2
3
3
import { 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' ;
11
5
12
6
export function composeWithPagination (
13
7
typeComposer : TypeComposer ,
Original file line number Diff line number Diff line change 1
1
/* @flow */
2
2
3
3
import { composeWithPagination } from './composeWithPagination' ;
4
+ import { preparePaginationResolver } from './paginationResolver' ;
4
5
5
6
export default composeWithPagination ;
6
7
7
- export { composeWithPagination } ;
8
+ export { composeWithPagination , preparePaginationResolver } ;
8
9
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 {
8
8
ProjectionType ,
9
9
} from 'graphql-compose' ;
10
10
import type { GraphQLResolveInfo } from 'graphql-compose/lib/graphql' ;
11
- import type { ComposeWithPaginationOpts } from './composeWithPagination' ;
12
11
import { preparePaginationTC } from './types/preparePaginationType' ;
13
12
14
13
const DEFAULT_PER_PAGE = 20 ;
15
14
15
+ export type ComposeWithPaginationOpts = {
16
+ findResolverName : string ,
17
+ countResolverName : string ,
18
+ perPage ?: number ,
19
+ } ;
20
+
16
21
export type PaginationResolveParams < TContext > = {
17
22
source : any ,
18
23
args : {
You can’t perform that action at this time.
0 commit comments