File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ export function composeWithPagination(
1313 typeComposer : TypeComposer ,
1414 opts : ComposeWithPaginationOpts
1515) : TypeComposer {
16- if ( ! ( typeComposer instanceof TypeComposer ) ) {
16+ if ( ! typeComposer || typeComposer . constructor . name !== ' TypeComposer' ) {
1717 throw new Error ( 'You should provide TypeComposer instance to composeWithPagination method' ) ;
1818 }
1919
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ export function preparePaginationResolver<TSource, TContext>(
4343 typeComposer : TypeComposer ,
4444 opts : ComposeWithPaginationOpts
4545) : Resolver < TSource , TContext > {
46- if ( ! ( typeComposer instanceof TypeComposer ) ) {
46+ if ( ! typeComposer || typeComposer . constructor . name !== ' TypeComposer' ) {
4747 throw new Error ( 'First arg for prepareConnectionResolver() should be instance of TypeComposer' ) ;
4848 }
4949
You can’t perform that action at this time.
0 commit comments