Skip to content

Commit

Permalink
revert auth change
Browse files Browse the repository at this point in the history
  • Loading branch information
atierian committed Sep 3, 2024
1 parent e604c2c commit bf0e749
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1532,7 +1532,7 @@ export class AuthTransformer extends TransformerAuthBase implements TransformerA
allowedFields: Set<string>,
fields: readonly string[],
): void => {
const typeDefinitions = ctx.output.getTypeDefinitionsOfKind('ObjectTypeDefinition') as ObjectTypeDefinitionNode[];
const typeDefinitions = ctx.inputDocument.definitions.filter((it) => it.kind === 'ObjectTypeDefinition') as ObjectTypeDefinitionNode[];

this.addAutoGeneratedHasManyFields(ctx, typeDefinitions, def, allowedFields);
this.addAutoGeneratedHasOneFields(ctx, typeDefinitions, fields, def, allowedFields);
Expand Down

0 comments on commit bf0e749

Please sign in to comment.