File tree 3 files changed +16
-674
lines changed
3 files changed +16
-674
lines changed Original file line number Diff line number Diff line change 41
41
"eslint-plugin-prettier" : " ^2.6.0" ,
42
42
"flow-bin" : " ^0.65.0" ,
43
43
"graphql" : " 0.13.0" ,
44
- "graphql-compose" : " ^3.0.0-beta.2 " ,
44
+ "graphql-compose" : " ^3.0.0-beta.3 " ,
45
45
"jest" : " ^22.2.1" ,
46
46
"prettier" : " ^1.10.2" ,
47
47
"rimraf" : " ^2.6.2" ,
Original file line number Diff line number Diff line change 1
1
/* @flow */
2
2
/* eslint-disable no-use-before-define */
3
3
4
- import { TypeComposer } from 'graphql-compose' ;
4
+ import { type TypeComposer , _ProtoTypeComposer } from 'graphql-compose' ;
5
5
import { GraphQLID , GraphQLNonNull } from 'graphql-compose/lib/graphql' ;
6
6
import NodeInterface from './nodeInterface' ;
7
7
import wrapMutationResolver from './wrapMutationResolver' ;
@@ -14,7 +14,7 @@ export const TypeMapForRelayNode = {};
14
14
export const nodeFieldConfig = getNodeFieldConfig ( TypeMapForRelayNode ) ;
15
15
16
16
export function composeWithRelay ( typeComposer : TypeComposer ) : TypeComposer {
17
- if ( ! ( typeComposer instanceof TypeComposer ) ) {
17
+ if ( ! ( typeComposer instanceof _ProtoTypeComposer ) ) {
18
18
throw new Error ( 'You should provide TypeComposer instance to composeWithRelay method' ) ;
19
19
}
20
20
You can’t perform that action at this time.
0 commit comments