Skip to content

Commit

Permalink
fix(graphql-default-value-transformer): modify inputObjects on the ctx
Browse files Browse the repository at this point in the history
  • Loading branch information
p5quared committed Sep 11, 2024
1 parent 98915fe commit 358df48
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ export class DefaultValueTransformer extends TransformerPluginBase {
const input = InputObjectDefinitionWrapper.fromObject(name, config.object, ctx.inputDocument);
const fieldWrapper = input.fields.find((f) => f.name === config.field.name.value);
fieldWrapper?.makeNullable();
ctx.output.updateInput(input.serialize());
}
}
};
Expand Down

0 comments on commit 358df48

Please sign in to comment.