We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02e8411 commit 6e2bb1cCopy full SHA for 6e2bb1c
src/methods/validate-fixture-input.ts
@@ -194,7 +194,7 @@ export function validateFixtureInput(
194
);
195
196
let typenameResponseKey: string | undefined;
197
- if (typenameField && typenameField.kind === Kind.FIELD) {
+ if (typenameField?.kind === Kind.FIELD) {
198
typenameResponseKey = typenameField.alias?.value || "__typename";
199
} else if (parent && 'kind' in parent && parent.kind === Kind.INLINE_FRAGMENT) {
200
// Inside an inline fragment without __typename - inherit from parent SelectionSet
0 commit comments