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 = {
45
45
46
46
export type GraphQLConnectionType = {
47
47
count : number ,
48
- edges : [ GraphQLConnectionEdgeType ] ,
48
+ edges : [ GraphQLConnectionEdgeType ] | [ ] ,
49
49
pageInfo : PageInfoType ,
50
50
}
51
51
Original file line number Diff line number Diff line change @@ -97,6 +97,7 @@ export function prepareConnectionResolver(
97
97
findManyParams . args . sort = sortOptions . sortValue ;
98
98
99
99
if ( projection && projection . edges ) {
100
+ // $FlowFixMe
100
101
findManyParams . projection = projection . edges . node || { } ;
101
102
} else {
102
103
findManyParams . projection = { } ;
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ const GraphQLConnectionCursor = new GraphQLScalarType({
10
10
serialize : String ,
11
11
parseValue : String ,
12
12
parseLiteral ( ast ) {
13
+ // $FlowFixMe
13
14
return ast . kind === Kind . STRING ? ast . value : null ;
14
15
} ,
15
16
} ) ;
You can’t perform that action at this time.
0 commit comments