File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import fetch from 'node-fetch';
44import { composeWithJson } from '../index' ;
55import { PeopleTC } from './People' ;
66
7- const responseFromRestApi = {
7+ const restApiResponse = {
88 title : 'The Empire Strikes Back' ,
99 episode_id : 5 ,
1010 opening_crawl : 'It is a dark time for ...' ,
@@ -18,7 +18,7 @@ const responseFromRestApi = {
1818 ] ,
1919} ;
2020
21- export const FilmTC = composeWithJson ( 'Film' , responseFromRestApi ) ;
21+ export const FilmTC = composeWithJson ( 'Film' , restApiResponse ) ;
2222
2323// //////////////
2424// RESOLVERS aka FieldConfig in GraphQL
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import fetch from 'node-fetch';
44import { composeWithJson } from '../index' ;
55import { FilmTC } from './Film' ;
66
7- const responseFromRestApi = {
7+ const restApiResponse = {
88 name : 'Luke Skywalker' ,
99 height : '172' ,
1010 mass : '77' ,
@@ -20,7 +20,7 @@ const responseFromRestApi = {
2020 ] ,
2121} ;
2222
23- export const PeopleTC = composeWithJson ( 'People' , responseFromRestApi ) ;
23+ export const PeopleTC = composeWithJson ( 'People' , restApiResponse ) ;
2424
2525// //////////////
2626// RESOLVERS aka FieldConfig in GraphQL
You can’t perform that action at this time.
0 commit comments