Skip to content

Commit 07eb1aa

Browse files
committed
Aligned AddGraphQLServer overload argument names.
1 parent 5b25e18 commit 07eb1aa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/HotChocolate/AspNetCore/src/AspNetCore/Extensions/HotChocolateAspNetCoreServiceCollectionExtensions.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,17 +141,17 @@ public static IRequestExecutorBuilder AddGraphQLServer(
141141
/// <param name="schemaName">
142142
/// The name of the schema. Use explicit schema names if you host multiple schemas.
143143
/// </param>
144-
/// <param name="disableCostAnalyzer">
145-
/// Defines if the cost analyzer should be disabled.
144+
/// <param name="disableDefaultSecurity">
145+
/// Defines if the default security policy should be disabled.
146146
/// </param>
147147
/// <returns>
148148
/// Returns the <see cref="IRequestExecutorBuilder"/> so that configuration can be chained.
149149
/// </returns>
150150
public static IRequestExecutorBuilder AddGraphQLServer(
151151
this IRequestExecutorBuilder builder,
152152
string? schemaName = default,
153-
bool disableCostAnalyzer = false)
154-
=> builder.Services.AddGraphQLServer(schemaName, disableDefaultSecurity: disableCostAnalyzer);
153+
bool disableDefaultSecurity = false)
154+
=> builder.Services.AddGraphQLServer(schemaName, disableDefaultSecurity: disableDefaultSecurity);
155155

156156
/// <summary>
157157
/// Registers the GraphQL Upload Scalar.

0 commit comments

Comments
 (0)