File tree Expand file tree Collapse file tree 3 files changed +16
-674
lines changed Expand file tree Collapse file tree 3 files changed +16
-674
lines changed Original file line number Diff line number Diff line change 4141 "eslint-plugin-prettier" : " ^2.6.0" ,
4242 "flow-bin" : " ^0.65.0" ,
4343 "graphql" : " 0.13.0" ,
44- "graphql-compose" : " ^3.0.0-beta.2 " ,
44+ "graphql-compose" : " ^3.0.0-beta.3 " ,
4545 "jest" : " ^22.2.1" ,
4646 "prettier" : " ^1.10.2" ,
4747 "rimraf" : " ^2.6.2" ,
Original file line number Diff line number Diff line change 11/* @flow */
22/* eslint-disable no-use-before-define */
33
4- import { TypeComposer } from 'graphql-compose' ;
4+ import { type TypeComposer , _ProtoTypeComposer } from 'graphql-compose' ;
55import { GraphQLID , GraphQLNonNull } from 'graphql-compose/lib/graphql' ;
66import NodeInterface from './nodeInterface' ;
77import wrapMutationResolver from './wrapMutationResolver' ;
@@ -14,7 +14,7 @@ export const TypeMapForRelayNode = {};
1414export const nodeFieldConfig = getNodeFieldConfig ( TypeMapForRelayNode ) ;
1515
1616export function composeWithRelay ( typeComposer : TypeComposer ) : TypeComposer {
17- if ( ! ( typeComposer instanceof TypeComposer ) ) {
17+ if ( ! ( typeComposer instanceof _ProtoTypeComposer ) ) {
1818 throw new Error ( 'You should provide TypeComposer instance to composeWithRelay method' ) ;
1919 }
2020
You can’t perform that action at this time.
0 commit comments