File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -39,14 +39,16 @@ export function fieldsConflictMessage(
39
39
responseName : string ,
40
40
reason : ConflictReasonMessage
41
41
) : string {
42
- return `Fields "${ responseName } " conflict because ${ reasonMessage ( reason ) } .` ;
42
+ return `Fields "${ responseName } " conflict because ${ reasonMessage ( reason ) } ` +
43
+ '. Use aliases on the fields to fetch both if this was intentional.' ;
43
44
}
44
45
45
46
function reasonMessage ( reason : ConflictReasonMessage ) : string {
46
47
if ( Array . isArray ( reason ) ) {
47
48
return reason . map ( ( [ responseName , subreason ] ) =>
48
49
`subfields "${ responseName } " conflict because ${ reasonMessage ( subreason ) } `
49
- ) . join ( ' and ' ) ;
50
+ ) . join ( ' and ' ) +
51
+ '. Use aliases on the fields to fetch both if this was intentional.' ;
50
52
}
51
53
return reason ;
52
54
}
You can’t perform that action at this time.
0 commit comments