File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ export type CursorDataType = {
4545
4646export type GraphQLConnectionType = {
4747 count : number ,
48- edges : [ GraphQLConnectionEdgeType ] ,
48+ edges : [ GraphQLConnectionEdgeType ] | [ ] ,
4949 pageInfo : PageInfoType ,
5050}
5151
Original file line number Diff line number Diff line change @@ -97,6 +97,7 @@ export function prepareConnectionResolver(
9797 findManyParams . args . sort = sortOptions . sortValue ;
9898
9999 if ( projection && projection . edges ) {
100+ // $FlowFixMe
100101 findManyParams . projection = projection . edges . node || { } ;
101102 } else {
102103 findManyParams . projection = { } ;
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ const GraphQLConnectionCursor = new GraphQLScalarType({
1010 serialize : String ,
1111 parseValue : String ,
1212 parseLiteral ( ast ) {
13+ // $FlowFixMe
1314 return ast . kind === Kind . STRING ? ast . value : null ;
1415 } ,
1516} ) ;
You can’t perform that action at this time.
0 commit comments