Skip to content

Commit 2fa2931

Browse files
committed
query complexity analysis
1 parent 45b405d commit 2fa2931

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Features/GraphQL/Configuration/GraphQLConfiguration.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ public static IServiceCollection AddGraphQLServices(this IServiceCollection serv
4949

5050
// Configure GraphQL Server with built-in tools
5151
var graphqlBuilder = services.AddGraphQLServer()
52+
// To enable query complexity analysis, add the UseComplexity middleware here if supported by your HotChocolate version.
5253
// Add query, mutation, and subscription types
5354
.AddQueryType<Query>()
5455
.AddMutationType<Mutation>()

0 commit comments

Comments
 (0)