File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ export function composeWithPagination(
13
13
typeComposer : TypeComposer ,
14
14
opts : ComposeWithPaginationOpts
15
15
) : TypeComposer {
16
- if ( ! ( typeComposer instanceof TypeComposer ) ) {
16
+ if ( ! typeComposer || typeComposer . constructor . name !== ' TypeComposer' ) {
17
17
throw new Error ( 'You should provide TypeComposer instance to composeWithPagination method' ) ;
18
18
}
19
19
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ export function preparePaginationResolver<TSource, TContext>(
43
43
typeComposer : TypeComposer ,
44
44
opts : ComposeWithPaginationOpts
45
45
) : Resolver < TSource , TContext > {
46
- if ( ! ( typeComposer instanceof TypeComposer ) ) {
46
+ if ( ! typeComposer || typeComposer . constructor . name !== ' TypeComposer' ) {
47
47
throw new Error ( 'First arg for prepareConnectionResolver() should be instance of TypeComposer' ) ;
48
48
}
49
49
You can’t perform that action at this time.
0 commit comments