66using HotChocolate . Fusion . Shared . Products ;
77using HotChocolate . Fusion . Shared . Reviews ;
88using HotChocolate . Fusion . Shared . Shipping ;
9+ using HotChocolate . Types . Descriptors ;
910using HotChocolate . Utilities . Introspection ;
1011using Microsoft . AspNetCore . Builder ;
1112using Microsoft . Extensions . DependencyInjection ;
@@ -77,7 +78,8 @@ public static async Task<DemoProject> CreateAsync(CancellationToken ct = default
7778 . AddMutationType < ReviewsMutation > ( )
7879 . AddSubscriptionType < ReviewsSubscription > ( )
7980 . AddMutationConventions ( )
80- . AddGlobalObjectIdentification ( ) ,
81+ . AddGlobalObjectIdentification ( )
82+ . AddConvention < INamingConventions > ( _ => new DefaultNamingConventions ( ) ) ,
8183 c => c
8284 . UseWebSockets ( )
8385 . UseRouting ( )
@@ -99,7 +101,8 @@ public static async Task<DemoProject> CreateAsync(CancellationToken ct = default
99101 . AddMutationType < Reviews2 . ReviewsMutation > ( )
100102 . AddSubscriptionType < Reviews2 . ReviewsSubscription > ( )
101103 . AddMutationConventions ( )
102- . AddGlobalObjectIdentification ( ) ,
104+ . AddGlobalObjectIdentification ( )
105+ . AddConvention < INamingConventions > ( _ => new DefaultNamingConventions ( ) ) ,
103106 c => c
104107 . UseWebSockets ( )
105108 . UseRouting ( )
@@ -120,7 +123,8 @@ public static async Task<DemoProject> CreateAsync(CancellationToken ct = default
120123 . AddQueryType < AccountQuery > ( )
121124 . AddMutationType < AccountMutation > ( )
122125 . AddMutationConventions ( )
123- . AddGlobalObjectIdentification ( ) ,
126+ . AddGlobalObjectIdentification ( )
127+ . AddConvention < INamingConventions > ( _ => new DefaultNamingConventions ( ) ) ,
124128 c => c
125129 . UseRouting ( )
126130 . UseEndpoints ( endpoints => endpoints . MapGraphQL ( ) ) ) ;
@@ -138,7 +142,8 @@ public static async Task<DemoProject> CreateAsync(CancellationToken ct = default
138142 . AddSingleton < ProductRepository > ( )
139143 . AddGraphQLServer ( )
140144 . AddQueryType < ProductQuery > ( )
141- . AddGlobalObjectIdentification ( ) ,
145+ . AddGlobalObjectIdentification ( )
146+ . AddConvention < INamingConventions > ( _ => new DefaultNamingConventions ( ) ) ,
142147 c => c
143148 . UseRouting ( )
144149 . UseEndpoints ( endpoints => endpoints . MapGraphQL ( ) ) ) ;
@@ -155,7 +160,8 @@ public static async Task<DemoProject> CreateAsync(CancellationToken ct = default
155160 . AddRouting ( )
156161 . AddGraphQLServer ( )
157162 . AddQueryType < ShippingQuery > ( )
158- . ConfigureSchema ( b => b . SetContextData ( GlobalIdSupportEnabled , 1 ) ) ,
163+ . ConfigureSchema ( b => b . SetContextData ( GlobalIdSupportEnabled , 1 ) )
164+ . AddConvention < INamingConventions > ( _ => new DefaultNamingConventions ( ) ) ,
159165 c => c
160166 . UseRouting ( )
161167 . UseEndpoints ( endpoints => endpoints . MapGraphQL ( ) ) ) ;
@@ -174,7 +180,8 @@ public static async Task<DemoProject> CreateAsync(CancellationToken ct = default
174180 . AddQueryType < AppointmentQuery > ( )
175181 . AddObjectType < Appointments . Patient1 > ( )
176182 . AddObjectType < Patient2 > ( )
177- . AddGlobalObjectIdentification ( ) ,
183+ . AddGlobalObjectIdentification ( )
184+ . AddConvention < INamingConventions > ( _ => new DefaultNamingConventions ( ) ) ,
178185 c => c
179186 . UseRouting ( )
180187 . UseEndpoints ( endpoints => endpoints . MapGraphQL ( ) ) ) ;
@@ -191,7 +198,8 @@ public static async Task<DemoProject> CreateAsync(CancellationToken ct = default
191198 . AddRouting ( )
192199 . AddGraphQLServer ( )
193200 . AddQueryType < Patient1Query > ( )
194- . AddGlobalObjectIdentification ( ) ,
201+ . AddGlobalObjectIdentification ( )
202+ . AddConvention < INamingConventions > ( _ => new DefaultNamingConventions ( ) ) ,
195203 c => c
196204 . UseRouting ( )
197205 . UseEndpoints ( endpoints => endpoints . MapGraphQL ( ) ) ) ;
0 commit comments