Skip to content

Commit dba1f76

Browse files
committed
Small fix
1 parent bc6cddd commit dba1f76

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/router-runtime/src/executor.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1249,6 +1249,14 @@ function projectSelectionSet(
12491249
const enumValue = enumType.getValue(value);
12501250
if (enumValue == null) {
12511251
return null;
1252+
} else if (
1253+
getDirective(
1254+
executionContext.supergraphSchema,
1255+
enumValue,
1256+
'inaccessible',
1257+
)?.length
1258+
) {
1259+
return null;
12521260
}
12531261
return value;
12541262
}

0 commit comments

Comments
 (0)