File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,8 @@ var photoData = {
4848} ;
4949
5050var { nodeField, nodeInterface} = nodeDefinitions (
51- ( id ) => {
51+ ( id , info ) => {
52+ expect ( info . schema ) . to . equal ( schema ) ;
5253 if ( userData [ id ] ) {
5354 return userData [ id ] ;
5455 }
Original file line number Diff line number Diff line change @@ -16,7 +16,8 @@ import {
1616
1717import type {
1818 GraphQLFieldConfig ,
19- GraphQLObjectType
19+ GraphQLObjectType ,
20+ GraphQLResolveInfo
2021} from 'graphql' ;
2122
2223import {
@@ -39,7 +40,7 @@ type typeResolverFn = (object: any) => ?GraphQLObjectType |
3940 * and a field config for a `node` root field.
4041 */
4142export function nodeDefinitions (
42- idFetcher : ( ( id : string ) => any ) ,
43+ idFetcher : ( ( id : string , info : GraphQLResolveInfo ) => any ) ,
4344 typeResolver : typeResolverFn
4445) : GraphQLNodeDefinitions {
4546 var nodeInterface = new GraphQLInterfaceType ( {
You can’t perform that action at this time.
0 commit comments