File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
packages/services/api/src/modules/schema/lib Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -57,9 +57,17 @@ export const extractSuperGraphInformation = traceInlineSync(
57
57
for ( const fieldNode of node . fields ) {
58
58
const schemaCoordinate = `${ node . name . value } .${ fieldNode . name . value } ` ;
59
59
60
- const graphArg = fieldNode . directives
61
- ?. find ( directive => directive . name . value === 'join__field' )
62
- ?. arguments ?. find ( arg => arg . name . value === 'graph' ) ;
60
+ const joinField = fieldNode . directives ?. find (
61
+ directive =>
62
+ directive . name . value === 'join__field' &&
63
+ ! directive . arguments ?. find (
64
+ arg =>
65
+ arg . name . value === 'usedOverridden' &&
66
+ arg . value . kind === Kind . BOOLEAN &&
67
+ arg . value . value === true ,
68
+ ) ,
69
+ ) ;
70
+ const graphArg = joinField ?. arguments ?. find ( arg => arg . name . value === 'graph' ) ;
63
71
64
72
if ( graphArg === undefined ) {
65
73
schemaCoordinateToServiceEnumValueMappings . set (
You can’t perform that action at this time.
0 commit comments