Skip to content

Commit 239719c

Browse files
committed
Access formatters more efficiently. (#7863)
1 parent 72eda6f commit 239719c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/HotChocolate/Core/src/Types.Mutations/MutationConventionTypeInterceptor.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,12 +227,12 @@ private void TryApplyInputConvention(
227227

228228
var argumentType = _completionContext.GetType<IInputType>(argument.Type!);
229229

230-
var formatter =
231-
argument.Formatters.Count switch
230+
var formatters = argument.GetFormatters();
231+
var formatter = formatters.Count switch
232232
{
233233
0 => null,
234-
1 => argument.Formatters[0],
235-
_ => new AggregateInputValueFormatter(argument.Formatters),
234+
1 => formatters[0],
235+
_ => new AggregateInputValueFormatter(formatters),
236236
};
237237

238238
var defaultValue = argument.DefaultValue;

0 commit comments

Comments
 (0)