Skip to content

Commit 6e2bb1c

Browse files
committed
shortform typenameField check
1 parent 02e8411 commit 6e2bb1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/methods/validate-fixture-input.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ export function validateFixtureInput(
194194
);
195195

196196
let typenameResponseKey: string | undefined;
197-
if (typenameField && typenameField.kind === Kind.FIELD) {
197+
if (typenameField?.kind === Kind.FIELD) {
198198
typenameResponseKey = typenameField.alias?.value || "__typename";
199199
} else if (parent && 'kind' in parent && parent.kind === Kind.INLINE_FRAGMENT) {
200200
// Inside an inline fragment without __typename - inherit from parent SelectionSet

0 commit comments

Comments
 (0)